HTTP cache v2: Time range to clear the cache is not respected

NEW
Unassigned

Status

()

Core
Networking: Cache
P3
normal
4 years ago
2 months ago

People

(Reporter: mihaelav, Unassigned)

Tracking

Trunk
Points:
---

Firefox Tracking Flags

(Not tracked)

Details

(Whiteboard: [necko-backlog])

Attachments

(1 attachment)

(Reporter)

Description

4 years ago
Created attachment 817056 [details]
about:univtest addon

The new cache back end doesn't respect the selected time range to clean the cache.

Prerequisites:
1. Turn the browser.cache.use_new_backend preference to 1 (and restart the browser)
2. Install the about:univtest addon

Steps to reproduce:
1. Navigate to some pages to gather cached data (e.g webmail, news sites, social networks)
2. Wait for a while (more than 1 hour)
3. Navigate to new sites, different from the ones from step 1
4. Go to Options/Preferences > Privacy and click on the "clear your recent history" link
5. Select the time range to clear (Last Hour) and make sure "Cache" is selected in the details list
6. Click the "Clear Now" button
7. Check the cache (about:univtest)

Expected result: Cached data from step 3 is removed. Cached data from step 1 is unaffected

Actual result: All cache is cleared
Even the old one doesn't ;)  This is not a regression, so not blocking anything.  We delete the whole cache for all time ranges.

This is mostly dep on the index.
Depends on: 923016
Blocks: 941841
Blocks: 1035490
No longer blocks: 941841
No longer blocks: 1035490
Whiteboard: [necko-backlog]
Bulk change to priority: https://bugzilla.mozilla.org/show_bug.cgi?id=1399258
Priority: -- → P1
Bulk change to priority: https://bugzilla.mozilla.org/show_bug.cgi?id=1399258
Priority: P1 → P3
You need to log in before you can comment on or make changes to this bug.