<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>And now here&#039;s something… &#187; jetty</title>
	<atom:link href="http://christiansons.net/mike/blog/category/jetty/feed/" rel="self" type="application/rss+xml" />
	<link>http://christiansons.net/mike/blog</link>
	<description>Java, Ant, SVN, Jetty, cygwin and other stuff…</description>
	<lastBuildDate>Fri, 02 Dec 2011 16:53:46 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>Jetty browser cache control</title>
		<link>http://christiansons.net/mike/blog/2009/09/jetty-browser-cache-control/</link>
		<comments>http://christiansons.net/mike/blog/2009/09/jetty-browser-cache-control/#comments</comments>
		<pubDate>Fri, 18 Sep 2009 18:36:37 +0000</pubDate>
		<dc:creator>Mike Christianson</dc:creator>
				<category><![CDATA[jetty]]></category>
		<category><![CDATA[cache]]></category>

		<guid isPermaLink="false">http://christiansons.net/mike/blog/?p=405</guid>
		<description><![CDATA[Do you use Jetty and need to change the default setting for browser cache control? Have a look at the init-param element named cacheControl in webdefault.xml. Here&#8217;s the default configuration for the version of Jetty I use. Note the element is commented. &#60;!-- &#60;init-param&#62; &#60;param-name&#62;cacheControl&#60;/param-name&#62; &#60;param-value&#62;max-age=3600,public&#60;/param-value&#62; &#60;/init-param&#62; --&#62; To enable and configure browser cache control, <a href='http://christiansons.net/mike/blog/2009/09/jetty-browser-cache-control/'>[...]</a>]]></description>
			<content:encoded><![CDATA[<p>Do you use Jetty and need to change the default setting for browser <a href="http://tools.ietf.org/html/rfc2616#section-14.9">cache control</a>?  Have a look at the <tt>init-param</tt> element named <tt>cacheControl</tt> in <tt>webdefault.xml</tt>.  </p>
<p>Here&#8217;s the default configuration for the version of Jetty I use.  Note the element is commented.</p>

<div class="wp_syntax"><div class="code"><pre class="xml" style="font-family:monospace;"><span style="color: #808080; font-style: italic;">&lt;!--</span>
<span style="color: #808080; font-style: italic;">&lt;init-param&gt;</span>
<span style="color: #808080; font-style: italic;">      &lt;param-name&gt;cacheControl&lt;/param-name&gt;</span>
<span style="color: #808080; font-style: italic;">      &lt;param-value&gt;max-age=3600,public&lt;/param-value&gt;</span>
<span style="color: #808080; font-style: italic;">&lt;/init-param&gt;</span>
<span style="color: #808080; font-style: italic;">--&gt;</span></pre></div></div>

<p>To enable and configure browser cache control, uncomment and edit the <tt>param-value</tt> as appropriate.  The following example instructs the browser to disable all caching.</p>

<div class="wp_syntax"><div class="code"><pre class="xml" style="font-family:monospace;"><span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;init-param<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
      <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;param-name<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>cacheControl<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/param-name<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
      <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;param-value<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>no-store,no-cache,must-revalidate<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/param-value<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/init-param<span style="color: #000000; font-weight: bold;">&gt;</span></span></span></pre></div></div>

<p>For information on <tt>Cache-Control</tt>, see <a href="http://tools.ietf.org/html/rfc2616#section-14.9">RFC 2616, Section 14.9</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://christiansons.net/mike/blog/2009/09/jetty-browser-cache-control/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
	</channel>
</rss>

