28 Jun 2007
18 Mar 2013
Link to this post
We've been experiencing this problem for quite some time and have never found a solution.
On most of our SF sites (4.x through 5.x) no matter what we do, changed CSS and JS files do not automatically get updated on the client side.
In our current situation, we updated a number of CSS files along with JS files which changes the user experience a little bit. If these files are not updated the UI breaks.
1. The content of the site is updating (we added a period '.' to one of the content blocks to check, it worked)
2. In Settings > Advanced > System > Output Cache Settings we've set all caching options to False for each of the profiles (Output and Client)
3. We use a control called StylesheetPlaceHolder which calls in your CSS at the right time and in a specific order. We've added ?v1 to the back of each of the css files
5. We've reset IIS too
Browsing the site in IE still doesn't get the right files. Only when you explicitly clear the cache or even if you hit F12 to bring up the developer tools does it load the correct files. Then it works perfectly.
What else should we do to invalidate the client cache (or files in it).
As I mentioned we've got this problem across all of our SF sites.
EDIT: See the attached image showing Response Header. Good to note here is that the Last modified date is set to a year ago, which can't be right, because I just edited the page.