<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE rss [<!ENTITY % HTMLlat1 PUBLIC "-//W3C//ENTITIES Latin 1 for XHTML//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml-lat1.ent">]>
<rss version="2.0" xml:base="http://www.kai-mai.com">
<channel>
 <title>Kai Mai&#039;s Blog - Take Back the Web - Nodes for max-age,</title>
 <link>http://www.kai-mai.com/tags/max-age,</link>
 <description>Nodes containing the tag max-age,</description>
 <language>en</language>
<item>
 <title>JBoss Tomcat SSL Cache Control Max-Age</title>
 <link>http://www.kai-mai.com/node/129</link>
 <description>&lt;p&gt;
If you are running SSL with JBoss, you&#039;d notice that Tomcat always sends &amp;quot;Cache-Control: no-cache&amp;quot; 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.
&lt;/p&gt;
&lt;p&gt;
JBoss wiki has &lt;a href=&quot;http://wiki.jboss.org/wiki/Wiki.jsp?page=DisableCacheControl&quot;&gt;the detail&lt;/a&gt; of how to disable cache control.
&lt;/p&gt;
&lt;p&gt;
Once you get that fix, you can use to 
&lt;a href=&quot;http://docs.jboss.org/jbossas/javadoc/4.0.2/org/jboss/web/tomcat/filters/ReplyHeaderFilter.java.html&quot;&gt;JBoss&#039;s ReplyHeaderFilter&lt;/a&gt; to specify max-age header to tell browsers to cache your content.
&lt;/p&gt;
&lt;p class=&quot;awTags_TagLinks&quot;&gt;Tags: &lt;a href=&quot;tags/192&quot;&gt;ssl&lt;/a&gt; &lt;a href=&quot;tags/216&quot;&gt;jboss,&lt;/a&gt; &lt;a href=&quot;tags/217&quot;&gt;tomcat,&lt;/a&gt; &lt;a href=&quot;tags/218&quot;&gt;ssl,&lt;/a&gt; &lt;a href=&quot;tags/219&quot;&gt;max-age,&lt;/a&gt; &lt;a href=&quot;tags/220&quot;&gt;cache-control&lt;/a&gt; &lt;/p&gt;</description>
 <category domain="http://www.technorati.com/tag">ssl</category>
 <category domain="http://www.technorati.com/tag">jboss,</category>
 <category domain="http://www.technorati.com/tag">tomcat,</category>
 <category domain="http://www.technorati.com/tag">ssl,</category>
 <category domain="http://www.technorati.com/tag">max-age,</category>
 <category domain="http://www.technorati.com/tag">cache-control</category>
 <pubDate>Mon, 24 Mar 2008 23:21:29 -0700</pubDate>
</item>
</channel>
</rss>
