-
Notifications
You must be signed in to change notification settings - Fork 195
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Some files pushed via node-spdy can not be found in browser cache #262
Comments
@Tresdin Since you are running Service worker script on the page, resources will be fetched through that. Can you post the sw.js snippet which you have on the page. |
@vigneshshanmugam Those requests won't be fetched through ServiceWorker simply because the client script is executed within the ServiceWorker. |
Anyone interested in confirming this bug? |
@Tresdin I think I had the same problem. You're missing cache headers or your don't have a secure connection implemented. See the 2nd hint (in the bottom) from this blogpost https://blog.yld.io/2017/03/01/optimize-with-http-2-server-push-and-service-workers/ I hope it helps! |
@sericaia Thanks for the information. But I do fetch those files via HTTPS connections and they are also cached for 60 seconds (use |
I've tried to serve some files via http2. Here is my code.
Server
Client
Result

As you can see from the above result, 6 out of 14 files are not fetched from cache. And I still can't figure out the reason behind this strange behaviour.
P/s. This test is run on
Chrome v51.0.2704.106 m (64-bit)
,Node.js v6.2.2
andnode-spdy v3.3.3
The text was updated successfully, but these errors were encountered: