What happened to the Messenger Plus! forums on msghelp.net?
Shoutbox » MsgHelp Archive » Skype & Technology » Tech Talk » HTML and XML problem

HTML and XML problem
Author: Message:
Adeptus
Senior Member
****


Posts: 732
Reputation: 40
Joined: Oct 2005
RE: HTML and XML problem
You are having problems with the browser caching the XML file (you can test this by clearing your browser cache after you have made a change to the XML).

Since you can't use meta tags in an XML data file, you need a different solution to control caching.  You can use the .htaccess based methods described here, provided your Apache server has the required modules loaded.

If you can't do that, make a PHP page that sets the 'text/xml" content type along with the desired cache control headers and simply dumps your XML as output.  Reference that instead of the XML file directly.

The third trick people use for this is to load the XML island using Javascript and append a random number query string, so that the request looks like "myfile.xml?7543758", the number being different every time.  This is probably the least clean, most kludge way --  it doesn't stop caching, just tricks the browser into not using the cached copies, thus polluting the browser cache.
07-12-2007 03:08 AM
Profile E-Mail PM Find Quote Report
« Next Oldest Return to Top Next Newest »

Messages In This Thread
HTML and XML problem - by MattyRid on 07-12-2007 at 12:18 AM
RE: HTML and XML problem - by Adeptus on 07-12-2007 at 03:08 AM
RE: HTML and XML problem - by MattyRid on 07-12-2007 at 03:18 AM
RE: HTML and XML problem - by Adeptus on 07-12-2007 at 05:02 AM
RE: HTML and XML problem - by MattyRid on 07-12-2007 at 05:26 AM
RE: HTML and XML problem - by MattyRid on 07-13-2007 at 11:59 AM
RE: HTML and XML problem - by Adeptus on 07-13-2007 at 02:23 PM
RE: HTML and XML problem - by MattyRid on 07-13-2007 at 09:22 PM


Threaded Mode | Linear Mode
View a Printable Version
Send this Thread to a Friend
Subscribe | Add to Favorites
Rate This Thread:

Forum Jump:

Forum Rules:
You cannot post new threads
You cannot post replies
You cannot post attachments
You can edit your posts
HTML is Off
myCode is On
Smilies are On
[img] Code is On