<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/css" href="/stylesheets/rss.css"?>
<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:trackback="http://madskills.com/public/xml/rss/module/trackback/">
  <channel>
    <title>Till Death Do Us Part : Tomcat, Weak ETags, and JavaScript/CSS Caching</title>
    <link>/2007/10/19/tomcat-weak-etags-and-javascript-css-caching?format=rss</link>
    <language>en-us</language>
    <ttl>40</ttl>
    <description>Thoughts around my marriage to technology</description>
    <item>
      <title>Comment on Tomcat, Weak ETags, and JavaScript/CSS Caching by Patrik</title>
      <description>Interesting post! Which version of Tomcat are you running on? - I tried the code myself but there is no method called getAttributes() . At least none that doesn't take any arguments.</description>
      <pubDate>Wed, 11 Jun 2008 08:36:53 -0700</pubDate>
      <guid isPermaLink="false">urn:uuid:1d4a9ab7-804b-44c7-97f9-8a683ca1421b</guid>
      <link>http://blog.bcarlso.net/2007/10/19/tomcat-weak-etags-and-javascript-css-caching#comment-12</link>
    </item>
    <item>
      <title>Comment on Tomcat, Weak ETags, and JavaScript/CSS Caching by Brandon</title>
      <description>Patrik,

We were running TC 5.x.</description>
      <pubDate>Sun, 15 Jun 2008 08:49:26 -0700</pubDate>
      <guid isPermaLink="false">urn:uuid:1586436d-0dec-40d0-bcd9-013a125ae3ce</guid>
      <link>http://blog.bcarlso.net/2007/10/19/tomcat-weak-etags-and-javascript-css-caching#comment-13</link>
    </item>
    <item>
      <title>Comment on Tomcat, Weak ETags, and JavaScript/CSS Caching by ptys</title>
      <description>...A "strong entity tag" MAY be shared by two entities of a resource only if they are equivalent by octet equality....

The way the etag is calculated in your example represents a weak etag, and what tomcat does by default. It's very likely for two entirely different files to be of same size and modified time.

You need to use some digest algorithm to claim a strong etag.</description>
      <pubDate>Mon, 05 Jan 2009 14:24:19 -0700</pubDate>
      <guid isPermaLink="false">urn:uuid:9750c9b6-6685-42d3-8d96-dabf7b6244fa</guid>
      <link>http://blog.bcarlso.net/2007/10/19/tomcat-weak-etags-and-javascript-css-caching#comment-19</link>
    </item>
    <item>
      <title>Comment on Tomcat, Weak ETags, and JavaScript/CSS Caching by Brandon</title>
      <description>@ptys Good point.

From the same spec: "Entity tags are used for comparing two or more entities from the same requested resource".
&lt;blockquote&gt;
It's very likely for two entirely different files
to be of same size and modified time.
&lt;/blockquote&gt;

True. But two entirely different files to be of the same size and modified time for a given resource? I think that's a bit less likely. I chose to usurp TC's ETag implementation as I deemed it "Good Enough".
&lt;br /&gt;

Thanks for the clarification.
</description>
      <pubDate>Mon, 05 Jan 2009 16:46:14 -0700</pubDate>
      <guid isPermaLink="false">urn:uuid:c9333b89-ba3b-45c2-9a90-f0ccdba7f7e9</guid>
      <link>http://blog.bcarlso.net/2007/10/19/tomcat-weak-etags-and-javascript-css-caching#comment-20</link>
    </item>
  </channel>
</rss>
