Closed Bug 1608207 Opened 4 years ago Closed 4 years ago

Make sure TRR requests don't use the HTTP cache

Categories

(Core :: Networking: DNS, defect, P1)

defect

Tracking

()

RESOLVED FIXED
mozilla74
Tracking Status
firefox74 --- fixed

People

(Reporter: valentin, Assigned: valentin)

References

Details

(Whiteboard: [necko-triaged][trr])

Attachments

(1 file)

TRR requests should bypass the HTTP cache (because of the overhead) but it seems we only do it for private browsing

So, the odd thing here is that the we only set the nsIRequest::INHIBIT_CACHING flag for private browsing. Clearly we should set it for all channels, right? In nsIRequest.idl it states: This flag prevents caching of any kind. It does not, however, prevent cached content from being used to satisfy this request. so there's still the worry that it will be looking for a cache entry, which will cause a delay.
However, it seems we also bypass the cache when Cache-Control: no-store is set, which is always (for POST requests). So probably this was only affecting GET requests, which is non-default.

I'll file a patch soon that fixes the flags so we don't cache TRR get requests either.

Pushed by valentin.gosu@gmail.com:
https://hg.mozilla.org/integration/autoland/rev/0e86006b356a
Make sure TRR requests don't use the HTTP cache r=dragana
Status: NEW → RESOLVED
Closed: 4 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla74
Regressions: 1618173
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: