Bug 16892 - Safari does not cache-validate certain resources
Summary: Safari does not cache-validate certain resources
Status: RESOLVED INVALID
Alias: None
Product: WebKit
Classification: Unclassified
Component: WebKit Misc. (show other bugs)
Version: 528+ (Nightly build)
Hardware: PC Windows XP
: P2 Normal
Assignee: Nobody
URL: http://finance.yahoo.com
Keywords: InRadar
Depends on:
Blocks:
 
Reported: 2008-01-16 09:27 PST by Sridhar Gurivireddy
Modified: 2022-02-10 13:29 PST (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Sridhar Gurivireddy 2008-01-16 09:27:43 PST
1) Navigate to finance.yahoo.com 
2) A network request goes out for http://l.yimg.com/us.js.yimg.com/lib/bc/bc_2.0.4.js
3) Close and open Safari again
4) Navigate again to finance.yahoo.com
5) Safari does not validate the cache for the resource.

However, IE does.
Comment 1 Alexey Proskuryakov 2008-01-16 10:29:27 PST
The title says "hitting back" - I do not see this in steps to reproduce. Could you please clarify which is correct?
Comment 2 Sridhar Gurivireddy 2008-01-17 11:21:28 PST
It happens both when navigating back and launching a new instance of safari.
Comment 3 Alexey Proskuryakov 2008-01-17 23:14:30 PST
I don't know what's happening here and whether this is a bug, but this is probably decided upon by Apple frameworks beneath WebKit.

$ curl -I http://l.yimg.com/us.js.yimg.com/lib/bc/bc_2.0.4.js
HTTP/1.1 200 OK
Date: Thu, 17 Jan 2008 22:27:17 GMT
Cache-Control: max-age=315360000
Expires: Sun, 14 Jan 2018 22:27:17 GMT
Last-Modified: Wed, 17 Jan 2007 23:44:19 GMT
Accept-Ranges: bytes
Content-Length: 2040
Content-Type: application/x-javascript
Age: 31461
Connection: keep-alive
Server: YTS/1.16.0

Comment 4 David Kilzer (:ddkilzer) 2008-01-19 03:16:25 PST
<rdar://problem/5696258>
Comment 5 Darin Adler 2008-01-22 12:09:10 PST
Why does IE revalidate? Is it a bug in IE? The response says:

    Cache-Control: max-age=315360000

That says it should not be revalidated until it's 10 years old!
Comment 6 Brent Fulgham 2022-02-10 13:29:19 PST
Closing old report.