New issue
Advanced search Search tips

Issue 645972 link

Starred by 2 users

Issue metadata

Status: Duplicate
Merged: issue 468227
Owner: ----
Closed: Sep 2016
Components:
EstimatedDays: ----
NextAction: ----
OS: Mac
Pri: 2
Type: Bug



Sign in to add a comment

Try download again from service worker cache fails

Reported by ji...@warting.se, Sep 12 2016

Issue description

UserAgent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_11_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/52.0.2743.82 Safari/537.36

Example URL:

Steps to reproduce the problem:
I have cached some files in the service worker. Non of the url exists on the server. It's just intercepted with respondWith

The first time the user tries to download a file it works, but if he abort it and goes to the download history and try to download the file again - it fails. It's like the "try again" button don't go through the service worker at all.

What is the expected behavior?
Maybe that the service worker would apply here as well?
But when i pressed on the link it will navigate to that url and download the file.

What went wrong?
I get a failure - not found

I realize this don't work for a service worker that acts as a proxy either.

If the server responds with "foo" and the service worker intercept it with "bar" response the file will be downloaded as "bar" but the try again button will download the file as "foo" as directly from the server (by passing the service worker)

...now pressing the url will work cuz it will navigate to that page instead 

Did this work before? N/A 

Chrome version: 52.0.2743.82  Channel: stable
OS Version: OS X 10.11.5
Flash Version:
 
Skärmavbild 2016-09-12 kl. 17.03.52.png
11.1 KB View Download

Comment 1 by ji...@warting.se, Sep 12 2016

The proxy part only applies to when you click on "try again"
Components: Blink>ServiceWorker
Labels: Needs-Feedback
Triaging to service worker team. Could you upload a net-internals trace? Here are the instructions:
https://dev.chromium.org/for-testers/providing-network-details
😁🐎📻🐱

2016-09-12 18:02 GMT+00:00 csharri… via monorail <
monorail+v2.1568633775@chromium.org>:

Comment 4 by horo@chromium.org, Sep 12 2016

Mergedinto: 468227
Status: Duplicate (was: Unconfirmed)

Sign in to add a comment