Invalidate cache for static files?

Phillip B Oldham phill at theactivitypeople.co.uk
Mon Jul 21 16:57:06 MSD 2008


What would be the simplest way to invalidate browser cache of static 
files served by nginx?

For instance, we have a website which is in active development. We get a 
reasonable amount of traffic, but we often get complaints when we update 
the live files because some browsers are working with a mix of fresh 
(live) and stale (cached) js/css files. We'd like to inform/force 
browsers that the file is new and should be updated.
-- 

*Phillip B Oldham*
The Activity People
phill at theactivitypeople.co.uk <mailto:phill at theactivitypeople.co.uk>

------------------------------------------------------------------------

*Policies*

This e-mail and its attachments are intended for the above named 
recipient(s) only and may be confidential. If they have come to you in 
error, please reply to this e-mail and highlight the error. No action 
should be taken regarding content, nor must you copy or show them to anyone.

This e-mail has been created in the knowledge that Internet e-mail is 
not a 100% secure communications medium, and we have taken steps to 
ensure that this e-mail and attachments are free from any virus. We must 
advise that in keeping with good computing practice the recipient should 
ensure they are completely virus free, and that you understand and 
observe the lack of security when e-mailing us.

------------------------------------------------------------------------
-------------- next part --------------
A non-text attachment was scrubbed...
Name: phill.vcf
Type: text/x-vcard
Size: 261 bytes
Desc: not available
URL: <http://nginx.org/pipermail/nginx/attachments/20080721/9e093b35/attachment.vcf>


More information about the nginx mailing list