[Xerte] Re: Standard method of preventing caching?

Patrick Lockley Patrick.Lockley at nottingham.ac.uk
Wed Jan 19 09:50:36 GMT 2011


Yep, my poor english and waffling masked that I said that in my original reply - look in modules/Xerte/play.php and preview.php - examples in there. I think the wizard has examples in it as well of loading files to avoid the cache.

From: xerte-bounces at lists.nottingham.ac.uk [mailto:xerte-bounces at lists.nottingham.ac.uk] On Behalf Of Julian Tenney
Sent: 19 January 2011 09:45
To: Xerte discussion list
Subject: [Xerte] Re: Standard method of preventing caching?

url = 'http://blah.com?' + new Date().getTime();
makes a unique URL to prevent caching.

From: xerte-bounces at lists.nottingham.ac.uk [mailto:xerte-bounces at lists.nottingham.ac.uk] On Behalf Of Dave Burnett
Sent: 19 January 2011 02:56
To: Xerte list
Subject: [Xerte] Re: Standard method of preventing caching?


Thnx, I'll give it a whirl.

I vaguely remember the old pragma/no-cache and querystring tricks, just wasn't sure where to add them to force as many objects to reload as possible.

You think refreshing the swf will reload any of the called files?
Or shall I need to add random strings to all external calls (which is pretty much everything Xerte displays;-)).

Someone must have run across caching of external text/xml files in the past?




> From: Patrick.Lockley at nottingham.ac.uk
> To: xerte at lists.nottingham.ac.uk
> Date: Tue, 18 Jan 2011 23:26:11 +0000
> Subject: [Xerte] Re: Standard method of preventing caching?
>
> in the embed code, when you load a swf, and some xml just add a fake get variable on the end
>
> name.swf?time = insert random number here (usually call a Unix timestap function)
>
> This works in toolkits (see there for examples).
> ________________________________________
> From: xerte-bounces at lists.nottingham.ac.uk [xerte-bounces at lists.nottingham.ac.uk] On Behalf Of Paul Swanson [Paul.Swanson at harlandfs.com]
> Sent: Tuesday, January 18, 2011 11:09 PM
> To: Xerte discussion list
> Subject: [Xerte] Re: Standard method of preventing caching?
>
> Not sure if it would cascade to a flash piece, but to prevent caching of the html loading page add the following to the <head></head> section of your web page:
>
> <meta http-equiv="cache-control" content="no-cache, no-store, must-revalidate">
> <meta http-equiv="Pragma" content="no-cache">
> <meta http-equiv="Expires" content="-1">
>
> Paul
>
> From: xerte-bounces at lists.nottingham.ac.uk [mailto:xerte-bounces at lists.nottingham.ac.uk] On Behalf Of Dave Burnett
> Sent: Tuesday, January 18, 2011 2:28 PM
> To: Xerte list
> Subject: [Xerte] Standard method of preventing caching?
>
> cacheing?
> ka-ching?
>
>
> I don't think streaming stuff gets cached anyway, so the bulky stuff is no problem.
>
> But I'd like to force down everything else fresh each time (at least until it's stable).
>
> swfs, xml's rlo's etc.
>
> _______________________________________________
> Xerte mailing list
> Xerte at lists.nottingham.ac.uk
> http://lists.nottingham.ac.uk/mailman/listinfo/xerte
> This message and any attachment are intended solely for the addressee and may contain confidential information. If you have received this message in error, please send it back to me, and immediately delete it. Please do not use, copy or disclose the information contained in this message or in any attachment. Any views or opinions expressed by the author of this email do not necessarily reflect the views of the University of Nottingham.
>
> This message has been checked for viruses but the contents of an attachment
> may still contain software viruses which could damage your computer system:
> you are advised to perform your own checks. Email communications with the
> University of Nottingham may be monitored as permitted by UK legislation.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.nottingham.ac.uk/pipermail/xerte/attachments/20110119/786db1c9/attachment-0001.html>


More information about the Xerte mailing list