-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA256 David,
On 11/25/13, 10:27 AM, David Balažic wrote: > Hi! > > Considering that JSP pages are by definition dynamic (different on > each GET), why doesn't Tomcat set the HTTP headers in the line of > "do not cache this, it's dynamic!" by default for all generated > HTML (*.jsp files and servlet responses)? What about JSPs that produce (relatively) static stuff? Would you want Tomcat to tell the client to re-fetch that data every time? (Then we'd get questions about why Tomcat was doing that, of course.) It's trivial for you to add such headers yourself, and this is a decision best made by application authors and not the container. So, go ahead and exercise your right to determine how your own web application behaves and set those headers yourself. Don't want to edit all your JSPs? How about slapping a Filter in front of them instead? - -chris -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.15 (Darwin) Comment: GPGTools - http://gpgtools.org Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/ iQIcBAEBCAAGBQJSk6asAAoJEBzwKT+lPKRYzUsQALXI5rPuYkoz6Qr7Ra/hifjm 3GW4J+DYr7o9h1EzVx9a5ckbj274gL1eKZfrTh6i74qY3+EyNgmaclarfhyVslvF fa4sNXOPFxq4PGy8ARABn4RuhvyCd1HCDxyMv7UBIT6cuj/8GN1eggiKEoxE/7TE 8p45qIr2if+qc9SfRr2q0hPhtjuaH6gF9TS6Zl0NaIguuwFKi1ugCW3BGYcDd5QQ MmpDrdlXsmvAIaA+stBUyRGOcjRifOrhl4vJbuzGWham5ESqQ/zWQJgXK5I70nKI t1qpcBlVzjBxT6qXzlOD+zoFrI6wZbLPxyawSigOx65kZ8UKwKP+Qm6zXqBPTZ1c ZmmvFrTLr2PjcmtY8IA79HJOXVr/HVCDqqV05I/cWsuFAhvouyWHNQOIOyryoL4y wKWYQzOwGuUZWoRITgGabAd2yP1YLPKSdCq1Bb/LJn23L6pOmTYqXrfL88MgQ8hY GbL/DBL3MXsLlFxoRgGX/7cSXvbnTyFzgqZZftHHpQd6Vn9UG/cv/ocXIgtRw9dd lX008MX6iKeLUKQIdGmo5qSKSf5pK3LvU/oK7fGWrRWkLjM5sBc6T6uiSk89GbJt zVxdOzAI0NJUqHlFWrKLrqMwzoZn1kOKOOw+GiL5RyoLZHUChVctoXYyOrn3VY+b 6A1bUPgAHPiNkuV86XTT =1GL7 -----END PGP SIGNATURE----- --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org