Closed Bug 75709 Opened 23 years ago Closed 23 years ago

expires header not honored, gets cached copy

Categories

(Core :: Networking: HTTP, defect, P2)

defect

Tracking

()

VERIFIED FIXED
mozilla0.9.2

People

(Reporter: dxrobertson, Assigned: darin.moz)

References

()

Details

(Keywords: regression, Whiteboard: r=gordon, sr=dougt, a=asa)

Attachments

(1 file)

Using build id 2001041200, win nt.  See bug from long ago - 26207.  This has
re-appeared at some point since the new cahce was implemented.  I was the
original reporter of this bug and it is happening again here on our intranet. 
Visit slashdot to demonstrate.  I am not sure what method slashdot uses to force
a refresh from the server instead of the cached copy (whether they use an
expires header or not), but regardless; mozilla graps the cached copy when
visiting slashdot.  NS 4.x always goes to server.
The headers sent by slashdot.org:

HTTP/1.1 200 OK
Date: Thu, 12 Apr 2001 13:41:06 GMT
Server: Apache/1.3.12 (Unix) mod_perl/1.24
Connection: close
Content-Type: text/html
Reporter try creating a new profile and downloading the latest nightly? Does
that fix the problem? Report back either way. Thanks in advance.
I have tried this on build id 2001041520 and 2001041704, fresh installs and
profiles, in winnt and linux and it still seems to be a problem.  The page seems
to be refreshing from the cache when i hit enter from the url to access the
page.  If hit reload, it gets the page properly from the server.  NS4.7 and IE
load the page from the server always.  The access_log from the server shows an
entry for NS and IE everytime, and mozilla only on a browser reload.  Doing a
page-info from NS (View, Page Info) shows the Expires as Wednesday, December 31,
1969 7:00:01 PM.  I changed the cache setting in mozilla to Everytime I View the
Page and it then loads from the server each time.   
reporter, what is your page validation preference set to in the Preferences/
Advanced/Cache panel?
Assignee: gordon → darin
Component: Networking: Cache → Networking: HTTP
the "compare the page in the cache to the page on the network" is set to Once
per session.
with a cache validation setting of once-per-session, the cached copy will only
be refreshed once per session, so if it was created during this session, then
future requests for it will always get the cached copy.  i don't see how this
is a bug.
The html page contains an EXPIRES header with a date in the past.  It is my
understanding that the browser is to use this header information and not get the
cahced copy, but go to the server because the cached copy has expired
(regardless of the browser cache setting).  The other browsers (IE, NS4.7) work
this way.  I dont know much about the EXPIRES header and what is standard and
not standard, but we have always used this header to force the browser not to
use the cache and always go the server to get a possible updated page (the page
is java servlet generated and generally, it has changed).  Please see the
original bug #26207.  I guess it comes down to standards and the intent of the
EXPIRES header and if I am using it correctly?     
can you give an url to the content exhibiting this problem, thanks!
Marking NEW.
Status: UNCONFIRMED → NEW
Ever confirmed: true
-> mozilla0.9.2
Status: NEW → ASSIGNED
Keywords: 4xp, regression
OS: Windows NT → All
Hardware: PC → All
Target Milestone: --- → mozilla0.9.2
Priority: -- → P2
Keywords: patch
r=gordon
looks fine to me. sr=
Whiteboard: r=gordon, sr=dougt, a=?
a= asa@mozilla.org for checkin to the trunk.
(on behalf of drivers)
Blocks: 83989
Whiteboard: r=gordon, sr=dougt, a=? → r=gordon, sr=dougt, a=asa
fix checked in.
Status: ASSIGNED → RESOLVED
Closed: 23 years ago
Resolution: --- → FIXED
verified:

win NT4 2001080103
Linux rh6 2001080106
mac os9 2001080108
Status: RESOLVED → VERIFIED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: