Closed Bug 1180091 Opened 9 years ago Closed 8 years ago

make sure http cache follows normal HTTP semantics for signed packages

Categories

(Core :: Networking, defect, P2)

defect

Tracking

()

RESOLVED WONTFIX

People

(Reporter: pauljt, Assigned: valentin)

References

Details

(Whiteboard: [necko-would-take])

Attachments

(1 file, 1 obsolete file)

Signed packages follow normal http semantics. I.e. if the package still exists in our http cache when the user revisits a signed page, but the cache headers indicate that the content needs to be updated, we do a normal GET request to see if a new version needs to be downloaded.
Priority: -- → P1
Depends on: 1187159
blocking-b2g: --- → 2.5+
This might already be done, assigning to myself to verify.
Assignee: nobody → ptheriault
test_package_caching() contains a bunch of tests to make sure nsIRequest flags are handled properly.
I don't test INHIBIT_CACHING or INHIBIT_PERSISTENT_CACHING since these flags don't really make sense in this context and should not be used. I'm considering throwing an error if they are used
Attachment #8646749 - Flags: review?(ptheriault)
Assignee: ptheriault → valentin.gosu
Status: NEW → ASSIGNED
(In reply to Valentin Gosu [:valentin] from comment #2)
> Created attachment 8646749 [details] [diff] [review]
> make sure http cache follows normal HTTP semantics for signed packages
> 
> test_package_caching() contains a bunch of tests to make sure nsIRequest
> flags are handled properly.
> I don't test INHIBIT_CACHING or INHIBIT_PERSISTENT_CACHING since these flags
> don't really make sense in this context and should not be used. I'm
> considering throwing an error if they are used

That sounds reasonable to me.
Can we get review on this or find another reviewer?
Flags: needinfo?(ptheriault)
Sorry, I'm not usually a reviewer. The tests look good to me, but I'm probably not qualified to review.
Flags: needinfo?(ptheriault) → needinfo?(hchang)
Henry, can you take a look at this please.
I think I am also not qualified to review but the test cases look well test the requirements :) 

p.s. The use of |getResource| in the test cases needs to be updated to pass just channel and the callback in.
Flags: needinfo?(hchang)
Comment on attachment 8646749 [details] [diff] [review]
make sure http cache follows normal HTTP semantics for signed packages

Review of attachment 8646749 [details] [diff] [review]:
-----------------------------------------------------------------

As above, this looks ok I'm not qualified to review this. Jonas can you review, or help find someone to do this? I'm not sure who to reach out to at this point.
Attachment #8646749 - Flags: review?(ptheriault) → review?(jonas)
Rebased against latest changes
Attachment #8657973 - Flags: review?(jonas)
Attachment #8646749 - Attachment is obsolete: true
Attachment #8646749 - Flags: review?(jonas)
Priority: P1 → P2
Comment on attachment 8657973 [details] [diff] [review]
make sure http cache follows normal HTTP semantics for signed packages

Review of attachment 8657973 [details] [diff] [review]:
-----------------------------------------------------------------

I'm not quite following all that's going on in this test. (And I generally find it hard and not quite worth the time to review tests in detail). Mind grabbing me on irc and walking me through it?
Sure thing. How does Monday sound? Ping me when you're available.
Blocks: TV_Gecko_P2
No longer blocks: TV_Gecko_P2
I don't think this needs to block 2.5 but it would be nice to get fixed.
blocking-b2g: 2.5+ → ---
Whiteboard: [necko-would-take]
B2G code is going away.
Status: ASSIGNED → RESOLVED
Closed: 8 years ago
Resolution: --- → WONTFIX
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: