Bug 14751

Summary: Inspector should advise to add an Expires: header to static resources
Product: WebKit Reporter: Adam Roben (:aroben) <aroben>
Component: Web Inspector (Deprecated)Assignee: Nobody <webkit-unassigned>
Status: RESOLVED WORKSFORME    
Severity: Enhancement CC: apavlov, ap, timothy
Priority: P2 Keywords: InRadar
Version: 523.x (Safari 3)   
Hardware: All   
OS: All   
URL: http://jeremy.zawodny.com/blog/archives/009272.html

Adam Roben (:aroben)
Reported 2007-07-24 10:31:10 PDT
<http://jeremy.zawodny.com/blog/archives/009272.html> explains how adding the Expires: HTTP header to static resources can reduce network requests. The Inspector should suggest this for resources that don't already have this header. Probably some heuristic for determining which resources "seem like they would benefit" is needed so we don't blindly suggest this for everything. At a minimum, we shouldn't suggest this for obviously dynamic resources (like *.php)
Attachments
David Kilzer (:ddkilzer)
Comment 1 2007-07-24 20:59:23 PDT
Any image resource with a "?" in its URL should not have this suggestion.
Alexey Proskuryakov
Comment 2 2007-07-24 21:52:08 PDT
Would this recommendation be reliable enough? My understanding is that there are a lot of resources that are supposed to be verified with If-Modified-Since often, and following this recommendation would cause unexpected results when they actually change. In the comments to the aforementioned article, I found a link to a more in-depth treatment of the subject: <http://www.thinkvitamin.com/features/webapps/serving-javascript-fast>.
Adam Roben (:aroben)
Comment 3 2008-01-29 11:03:16 PST
Alexander Pavlov (apavlov)
Comment 4 2010-03-17 10:33:43 PDT
This type of recommendations is now provided in the Audits panel.
Alexander Pavlov (apavlov)
Comment 5 2010-03-18 03:49:31 PDT
Fix resolution status as advised by AP
Note You need to log in before you can comment on or make changes to this bug.