Closed Bug 367082 Opened 18 years ago Closed 8 years ago

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

Categories

(Core :: Networking: Cache, defect)

1.8 Branch
PowerPC
macOS
defect
Not set
normal

Tracking

()

RESOLVED INCOMPLETE

People

(Reporter: mark.imbriaco, Unassigned)

Details

Attachments

(2 files)

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.
Attached file Log file of test run.
Component: General → Networking: Cache
Product: Firefox → Core
QA Contact: general → networking.cache
Version: unspecified → 1.8 Branch
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.
I am also seeing this behavior.

"Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.8.1.5) Gecko/20070718 Fedora/2.0.0.5-1.fc7 Firefox/2.0.0.5"

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.
Attached file HTTP Log
Is this still an issue ?
Status: UNCONFIRMED → RESOLVED
Closed: 8 years ago
Resolution: --- → INCOMPLETE
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: