Where would you hunt down the annoying switch which allows a windows server to cache style sheets?!!
Everytime we reset the server, the style sheet refreshes... it can become cached for along time...
Where would you hunt down the annoying switch which allows a windows server to cache style sheets?!!
Everytime we reset the server, the style sheet refreshes... it can become cached for along time...
Static files like that are sent with headers that tell the browser to cache the file locally for x days.
To trick it, simply have your website reference the stylesheets like so:
http://www.domain.com/style.css?random=454534
...then just change the numbers whenever you want to force all browsers that have cached style.css to redownload the latest version.
Warren Ashcroft
Red Fox UK Limited - Pioneers in Internet Technology
http://www.redfoxuk.com
w.ashcroft [at] redfoxuk.com
NOTE: Forum Private Messaging should not be used to contact staff with support queries.
Ctrl + F5 usually does the business for me.
Interesting topic - I'm seeing a similar effect on javascript files at present.
We are using the workaround at present of adding a version number to the URL and it works OK but it does require some manual maintenance (and the alternative of using a random number causes some unnecessary cache delays)
I was wondering if there is any way of changing the "Cache-Control: max-age=864000" HTTP Header using HELM?
I guess not - but there's no harm in asking...
Cheers
H
Currently no, that is the server wide setting we are currently using for local caching of static files.
Warren Ashcroft
Red Fox UK Limited - Pioneers in Internet Technology
http://www.redfoxuk.com
w.ashcroft [at] redfoxuk.com
NOTE: Forum Private Messaging should not be used to contact staff with support queries.
I believe the Developer Toolbars available for Mozilla and IE allow you to disable caching whilst viewing a site. Of course, this means that if you update a live site customers will see cached versions until theirs expires.
Thanks
I think we might try to get around this by changing the affected files to ASP and then using
<% @Language="VBScript" %>
<% Response.CacheControl = "max-age=3600" %>
or similar.
Of course we'll also have to set Response.ContentType too...
That's one way...
Warren Ashcroft
Red Fox UK Limited - Pioneers in Internet Technology
http://www.redfoxuk.com
w.ashcroft [at] redfoxuk.com
NOTE: Forum Private Messaging should not be used to contact staff with support queries.
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks