Closed Bug 741678 Opened 12 years ago Closed 11 years ago

Opening of offline cache entry for write delays reading of entry from the nomal cache and/or from the net

Categories

(Core :: Networking: HTTP, enhancement)

enhancement
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla27

People

(Reporter: briansmith, Assigned: mayhemer)

References

Details

(Keywords: perf, Whiteboard: [Snappy:P3])

Our logic is something like this:

* Open a normal cache entry.
* If offline caching of the resource was requested, then open the offline cache
* Validate the normal cache entry, if any.
* Hit the net if necessary.

The logic should be reordered thusly:
* Open a normal cache entry.
* Validate the normal cache entry, if any.
* Hit the net if necessary.
* If we have something to write to the offline cache, and offline caching of the resource was requested, then open the offline cache

My understanding is that it is rare for an entry to be marked as needing to be written to the offline cache, so this shouldn't be a high priority relative to the other cache performance bugs.
This doesn't have IMO a high priority.  This (writing to offline cache) is done in background during the offline app cache update process and doesn't have a high probability of interacting with other requests in bursts during e.g. a front tab page load.
Whiteboard: [Snappy] → [Snappy:P3]
Summary: Opening of offline cache delays reading of entry from the nomal cache and/or from the net → Opening of offline cache entry for write delays reading of entry from the nomal cache and/or from the net
Fixed by 913807.
Status: NEW → RESOLVED
Closed: 11 years ago
Resolution: --- → FIXED
Assignee: nobody → honzab.moz
Depends on: 913807
Target Milestone: --- → mozilla27
You need to log in before you can comment on or make changes to this bug.