Closed Bug 152843 Opened 23 years ago Closed 22 years ago

limit expiration time in cache

Categories

(Core :: Networking: Cache, enhancement)

All
Windows NT
enhancement
Not set
normal

Tracking

()

RESOLVED INVALID

People

(Reporter: jo.hermans, Assigned: gordon)

References

()

Details

I have been using the maximum expiration time for cookies a lot (set to 7 days). This keeps my cookies-list quite small, without any maintenance. The example URL uses a few images, all set to expire in 2030. I noticed that these will stay forever in my cache, unless I clear the cache manually (or Mozilla crashes, but that's another story). Wouldn't it be better to limit the maximum expiration time to a much smaller value, let's say 30 days. Then it won't hold up all that space forever. Suppose I never visit that website again ... It seems related to bug 80731, but I don't want a complete customization, just a maximum expiration.
Actually the disk cache approximates a Least Recently Used cache. The expiration time is used by HTTP to determine whether to refetch the document from the server. Those documents that expire in 2030 won't stay clogging your cache unless you continue to use them...in which case, it's probably good they're there.
Status: UNCONFIRMED → RESOLVED
Closed: 22 years ago
Resolution: --- → INVALID
You need to log in before you can comment on or make changes to this bug.