How to overcome browser caching for replaced files?

The place to talk about things that are related to CMS Made simple, but don't fit anywhere else.
Post Reply
bryanhiggs
Forum Members
Forum Members
Posts: 33
Joined: Tue Mar 30, 2010 8:00 pm

How to overcome browser caching for replaced files?

Post by bryanhiggs »

We are running CMSms 1.6.6.

I have, several times, replaced a file (.pdf, .xls, at least) that I had previously uploaded with a new version of the file.
When I came to click on the link to it from a Content page, I found that the older version was retrieved.
I tried another browser that I had not used against this site, and it produced the new version; I had also cleared the browser cache earlier, and that solved the problem for me.

However, our clients shouldn't have to know to do that.

Is there any way we can specify in CMSms that a file not be cached? 

I'm aware that each content page can be set to cachable (or not); I'm talking about other kinds of files.

Thanks for any help you can provide
JeremyBASS

Re: How to overcome browser caching for replaced files?

Post by JeremyBASS »

This is more of an "general" topic.. but add ?1 and you'll see that the new file pops up right away... from that there is a few mods and plugins that can help with this..

http://dev.cmsmadesimple.org/projects/modslack&nbsp; <--- use the filetime

there is also

http://dev.cmsmadesimple.org/projects/scriptdeploy <--- for css and js
http://dev.cmsmadesimple.org/projects/supersizer&nbsp; <--- for images

Both of these have cache busters...

Hope this helps.  Cheers -Jeremy
Post Reply

Return to “The Lounge”