Skip to content
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

HTML Cache META attributes doesn't work #924

Open
ghost opened this issue Feb 24, 2017 · 2 comments
Open

HTML Cache META attributes doesn't work #924

ghost opened this issue Feb 24, 2017 · 2 comments

Comments

@ghost
Copy link

ghost commented Feb 24, 2017

Even with the following in the HTML files, it is cached. I think, the service-worker.js is causing this issue.

@Garbee
Copy link
Contributor

Garbee commented Feb 24, 2017

Yup, SW overrides the network cache in a way by adding an extra developer-controlled cache in between. You need to handle this in your applications Service Worker or remove the SW if you don't want to handle the client-side application caching manually.

@ghost
Copy link
Author

ghost commented Feb 25, 2017

@Garbee Is there a way I can exclude certain html files from the caching? Is the following a right way to do this?

staticFileGlobs: [
// Add/remove glob patterns to match your directory setup.
${rootDir}/images/**/*,
${rootDir}/scripts/**/*.js,
${rootDir}/styles/**/*.css,
// ${rootDir}/*.{html,json}
],

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant