FireFox doesn't cache XXXXXXXXXX.cache.html

73 views
Skip to first unread message

Михаил Ольховский

unread,
Sep 2, 2011, 9:47:55 AM9/2/11
to google-we...@googlegroups.com
FireFox always reload XXXXXXXXXX.cache.html file. Chrome and IE work fine

Request Headers
Hostlocalhost:8181
User-AgentMozilla/5.0 (Windows; U; Windows NT 6.1; en-US; rv:1.9.2.21) Gecko/20110830 Firefox/3.6.21
Accepttext/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
Accept-Language  en-us,ru;q=0.7,en;q=0.3
Accept-Encodinggzip,deflate
Accept-CharsetISO-8859-1,utf-8;q=0.7,*;q=0.7
Keep-Alive115
Connectionkeep-alive

Response Headers
Server Apache-Coyote/1.1
Expires Fri, 13 May 2050 23:30:00 GMT
Cache-Control max-age=315360000
Accept-Ranges bytes
Etag W/"2059548-1314855704000"
Last-Modified Thu, 01 Sep 2011 05:41:44 GMT
Content-Type text/html
Content-Length 2059548
Date Fri, 02 Sep 2011 13:17:54 GMT

XXXXXXXXXXX.cache.html files are too big and it is too expensive to reload them every time.
Can anybody to help me with this problem?


Thomas Broyer

unread,
Sep 2, 2011, 10:33:57 AM9/2/11
to google-we...@googlegroups.com
Well, the issue here is that Firefox doesn't even send a conditional request. How did you capture this request?

How, and 2Mb is really big! How about using code splitting? http://code.google.com/webtoolkit/doc/latest/DevGuideCodeSplitting.html

From that last page: “It is important to specify one of Expires or Cache-Control max-ageand one of Last-Modified or ETag, for all cacheable resources. It is redundant to specify both Expires and Cache-Control: max-age, or to specify both Last-Modified and ETag
And finally, your "max age" is too far in the future: “Do not set it to more than one year in the future, as that violates the RFC guidelines.” (same source)
Reply all
Reply to author
Forward
0 new messages