Closed Bug 80731 Opened 23 years ago Closed 9 years ago

Customized cache expire times

Categories

(Core :: Networking: HTTP, enhancement)

enhancement
Not set
normal

Tracking

()

RESOLVED WONTFIX

People

(Reporter: zeppyster, Unassigned)

References

Details

One future I would like is a setting that allows the user to customize the cache
expire times.

This could be done with the following setting in the preferences dialog:

Cached items/webpages expires after X days.
How would you want to use this feature?  Would you want to use it to hold onto 
things longer than the server has indicated, or would you want to expire content 
sooner than the server indicates?  Or do you want to ignore the server entirely?
Status: UNCONFIRMED → ASSIGNED
Ever confirmed: true
Target Milestone: --- → Future
Personally I would like to hold onto things longer than the server indicates,
but I think the user should decide if he want to expire cached items sooner or
later than the server indicates.
cc'ing darin because of implications for HTTP.
*** Bug 81639 has been marked as a duplicate of this bug. ***
tenthumbs comments from bug 81639:

Mozilla seems to have a default cache expiration time for disk objects 
that don't have their own. I think this should be user configurable. A 
user might want objects to expire an hour, a day, a week, or months or 
years from now. A user on a slow link might well set her disk cache to 
250MB and want to keep the data around as long as possible. Someone on a 
fast link might want a quick expiration. FWIW, Opera has this feature.


-> this is an http bug
Assignee: gordon → neeti
Status: ASSIGNED → NEW
Component: Networking: Cache → Networking: HTTP
-> me 
Assignee: neeti → darin
Here's an exerpt from section 13.4 of RFC 2616:

  If there is neither a cache validator nor an explicit expiration time 
  associated with a response, we do not expect it to be cached, but certain 
  caches MAY violate this expectation (for example, when little or no network 
  connectivity is available).

Our current behavior is to assign such content a zero freshness lifetime. 
According to the spec, it would seem that we could assign actually choose any
freshness lifetime for this, so yes... i would agree... this sounds like it
would make a nice feature/user-pref.
Status: NEW → ASSIGNED
OS: Windows 95 → All
Hardware: PC → All
Target Milestone: Future → mozilla0.9.6
-> future
Target Milestone: mozilla0.9.6 → Future
see also bug 152843 for a simpler solution
Summary: [RFE] Customized cache expire times → Customized cache expire times
A few features that would be nice relating to this:
 - offer a URI construct that accesses cached objects; "x-localcache://foobar.html"
 - when checking whether to expire an object because its about to be refetched,
only remove the cached object if the new object is available.  If the new object
is not available (server busy / gone / dns failure / etc.), display the cached
content with a notice in the status bar _or_ give a link to the cached url (see
my comments on bug 8345).
 - offer a button (probably on the page info window; which should have a button
on the main chrome, imho) to expire all objects from the current server.
-> default owner
Assignee: darin → nobody
Status: ASSIGNED → NEW
QA Contact: tever → networking.http
Target Milestone: Future → ---
addon territory
Status: NEW → RESOLVED
Closed: 9 years ago
Resolution: --- → WONTFIX
You need to log in before you can comment on or make changes to this bug.