Page 1 of 1

How to change a cached file when original file get modified.

Posted: Fri Aug 20, 2010 5:37 am
by aneeshrp
Hi All,

I have a website which is fully cached using headers. However when I make a change in the source file it is not appearing immediately in the browser, istead it shows only when I do a Ctrl+F5 refresh in my browser. Any way to sort out this issue, I want to load the original content in which I made the change.

Solutions are appreciated.

Re: How to change a cached file when original file get modif

Posted: Thu Aug 26, 2010 9:57 am
by Bind
add anti-cache headers or you can go ghetto with a UID added to the uri/query_string.

Re: How to change a cached file when original file get modif

Posted: Thu Aug 26, 2010 10:42 am
by aneeshrp
Thanks very much Bind for the reply.
Bind wrote:add anti-cache headers or you can go ghetto with a UID added to the uri/query_string.
The second option is not possible as I am expecting 100s to 1000s of changes perday.

First option looks pretty much acceptable, however if we anti-cache headers, then it will allow the other contents which we needed to be in cache ..am I correct?