tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From <john.rana...@thomsonreuters.com>
Subject RE: Caching of static content
Date Wed, 04 Aug 2010 19:32:47 GMT
Uh..thanks..it was not a good day when I asked this question. My apologies :)

-----Original Message-----
From: Christopher Schultz [mailto:chris@christopherschultz.net] 
Sent: Wednesday, August 04, 2010 10:03 AM
To: Tomcat Users List
Subject: Re: Caching of static content

-----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