tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Christopher Schultz <ch...@christopherschultz.net>
Subject Re: Caching of static content
Date Wed, 04 Aug 2010 14:03:10 GMT
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

John,

On 8/2/2010 2:06 PM, john.ranaudo@thomsonreuters.com wrote:
> Can someone point me to the documentation on how to handle caching of
> static content? Images and static HTML documents are all being returned
> without cach-control response headers but I am unsure how to set these
> values. Thus the files are being retrieved each and every time. 

http://lmgtfy.com/?q=tomcat+cache-control

> Also, how to handle the situation when you want a javascript file to be
> cached but after a release you need the file to be refreshed on the
> client.

Use the Expires header, and set it to "tomorrow"?

- -chris
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.10 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAkxZcx0ACgkQ9CaO5/Lv0PCdxgCfYDhiLcflqmcIIs7DfitEvu41
heEAoLxQhkzwlVcgARRFd5Ie1xmWAJjL
=kYZ5
-----END PGP SIGNATURE-----

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Mime
View raw message