FF 2.0 always GETs javascript and CSS files, even when it has cached data.




Networking: Cache
11 years ago
2 years ago


(Reporter: Mark Imbriaco, Unassigned)


1.8 Branch
Mac OS X

Firefox Tracking Flags

(Not tracked)



(2 attachments)



11 years ago
User-Agent:       Mozilla/5.0 (Macintosh; U; Intel Mac OS X; en-US; rv:1.8.1) Gecko/20061024 BonEcho/2.0
Build Identifier: Mozilla/5.0 (Macintosh; U; Intel Mac OS X; en-US; rv:1.8.1) Gecko/20061024 BonEcho/2.0

Firefox 2.0 (duplicated under Windows and MacOS X) seems to always retrieve Javascript and CSS files from the server, regardless of whether or not it has the file in it's cache already.  This behavior occurs even when the files in question have valid Expires and Cache-Control headers.

Reproducible: Always

Steps to Reproduce:
1. Load an HTML page that references an external CSS or Javascript file, and verify that the files are stored in the cache and have valid expiry information.
2. Load the same page again.  Assets such as images that have the exact same expiry information are not retrieved a second time, but all Javascript and CSS files are.
Actual Results:  
Javascript and CSS files were requested a second time.

Expected Results:  
Javascript and CSS files should have been served from the cache and not requested from the server again.

Comment 1

11 years ago
Created attachment 251600 [details]
Log file of test run.


11 years ago
Component: General → Networking: Cache
Product: Firefox → Core
QA Contact: general → networking.cache
Version: unspecified → 1.8 Branch

Comment 2

11 years ago
Is there any additional information that I can provide to help troubleshoot this?  I haven't seen any movement on this issue and just wanted to check in.

Comment 3

10 years ago
I am also seeing this behavior.

"Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv: Gecko/20070718 Fedora/ Firefox/"

I have a site where every page links to the same CSS file.  I have all images and CSS in a directory which sets "Cache-Control: max-age=86400, public", Last-Modified, and Date headers on every response.  The pages are generated from a Java Servlet which sets proper Date, Last-Modified, Expires, and "Cache-Control: public" headers.

If I use the back/forward buttons no HTTP traffic is shown (livehttpheaders extension), but if I follow a link to a page, both the page and it's CSS are reloaded every time.  All images (referenced via CSS) are cached properly.

Comment 4

10 years ago
Created attachment 278489 [details]
Is this still an issue ?
Last Resolved: 2 years ago
Resolution: --- → INCOMPLETE
You need to log in before you can comment on or make changes to this bug.