Add new comment

JBoss Tomcat SSL Cache Control Max-Age

Submitted by kai on Mon, 2008-03-24 23:21. ::

If you are running SSL with JBoss, you'd notice that Tomcat always sends "Cache-Control: no-cache" http header which ask browsers not to cache any content. This is a big NO-NO for static content like images, Javascript, css which should be cached by browsers to improve page loading performance.

JBoss wiki has the detail of how to disable cache control.

Once you get that fix, you can use to JBoss's ReplyHeaderFilter to specify max-age header to tell browsers to cache your content.

Reply



The content of this field is kept private and will not be shown publicly.


*

  • Allowed HTML tags: <a> <em> <strong> <cite> <code> <ul> <ol> <li> <dl> <dt> <dd>
  • Lines and paragraphs break automatically.
  • WikiText is converted to HTML (supported WikiText formatting will show in the long tip format).
Verify comment authorship
Captcha Image: you will need to recognize the text in it.
*
Please type in the letters/numbers that are shown in the image above.