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

RESOLVED INCOMPLETE

Status

()

Core
Networking: Cache
RESOLVED INCOMPLETE
11 years ago
2 years ago

People

(Reporter: Mark Imbriaco, Unassigned)

Tracking

1.8 Branch
PowerPC
Mac OS X
Points:
---

Firefox Tracking Flags

(Not tracked)

Details

Attachments

(2 attachments)

(Reporter)

Description

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.
(Reporter)

Comment 1

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

Updated

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

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: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.

Comment 4

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