[Webkit-unassigned] [Bug 18972] WebKit not using 304 Not Modified for Ajax requests

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Wed Nov 24 10:17:03 PST 2010


https://bugs.webkit.org/show_bug.cgi?id=18972


Randy Hudson <hudsonr at us.ibm.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |hudsonr at us.ibm.com




--- Comment #19 from Randy Hudson <hudsonr at us.ibm.com>  2010-11-24 10:17:03 PST ---
I'm seeing this issue is well.  Responses less than 60KB are not being cached.

I have a servlet which return javascript.  If I dynamically insert a <script> tag, then both Safari/Chrome will fetch the content, cache it, and make conditional fetches upon reload of that page.

However, if I use an XMLHttpRequest to call the exact same servlet with the same query parameters, etc., neither browser will cache the content, or at least they aren't making conditional fetches if they are caching.

The response headers look like this:
Cache-Control:public, max-age=2592000
Connection:Keep-Alive
Content-Encoding:gzip
Content-Language:en-US
Content-Type:text/javascript; charset=UTF-8
Date:Wed, 24 Nov 2010 18:12:17 GMT
Etag:3JxXt_en_US
Expires:Fri, 24 Dec 2010 18:12:17 GMT
Last-Modified:Tue, 16 Nov 2010 17:28:31 GMT
Proxy-Connection:Keep-Alive
Server:WebSphere Application Server/7.0
Transfer-Encoding:Identity

Can someone reopen this?  I can reproduce the issue on Chrome and Safari, so it doesn't seem like an Apple problem.

-- 
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.



More information about the webkit-unassigned mailing list