Closed Bug 1893257 Opened 6 months ago Closed 6 months ago

Firefox-only failures in WPT fetch/http-cache/cache-mode.any.js

Categories

(Core :: DOM: Networking, defect, P2)

defect

Tracking

()

RESOLVED FIXED
127 Branch
Tracking Status
firefox127 --- fixed

People

(Reporter: twisniewski, Assigned: twisniewski)

References

(Blocks 1 open bug)

Details

(Whiteboard: [necko-triaged])

Attachments

(1 file)

See https://wpt.fyi/results/fetch/http-cache?q=%2Fcache-mode

Fixing this essentially boils down to not setting the pragma and cache-control headers if they're not already set in nsHttpChannel.

We also fail the test Fetch sends Cache-Control: max-age=0 when cache mode is no-cache unless the check for !LoadCacheEntryIsWriteOnly() here is removed.

Blocks: fetch
Severity: -- → S3
Priority: -- → P2
Whiteboard: [necko-triaged]
Assignee: nobody → twisniewski
Status: NEW → ASSIGNED
Pushed by twisniewski@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/42813f04d4f6 don't overwrite pragma or cache-control request headers per spec, and otherwise always set cache-control:max-age=0 for no-cache cache mode; r=valentin,necko-reviewers
Status: ASSIGNED → RESOLVED
Closed: 6 months ago
Resolution: --- → FIXED
Target Milestone: --- → 127 Branch
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: