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

Cache-Busting Problem #110

Closed
lucianocn opened this issue Feb 16, 2017 · 2 comments
Closed

Cache-Busting Problem #110

lucianocn opened this issue Feb 16, 2017 · 2 comments

Comments

@lucianocn
Copy link

I'm using UpUp with Angular CLI, and it create CSS and JS file names with a HASH, like:
styles.6f851ef5ed61f94dfc02.bundle.css
inline.97f84214598998adf604.bundle.js
scripts.7bf3eef718d3d11d4686.bundle.js
...

So, as I don't know exactly the file names, before the deploy, there's any option to cache all page resources?

Thanks,

@NekR
Copy link

NekR commented Feb 16, 2017

Use something else like offline-plugin for webpack if you are using webpack or sw-precache.

Those tools automate everything for you, or you can manually write a build time script which will be taking file names and rewriting them in your code. But that's much harder and more error prone.

@TalAter TalAter closed this as completed Feb 16, 2017
@lucianocn
Copy link
Author

@NekR thanks!
I chose to use the https://github.com/GoogleChrome/sw-precache and it's working perfect!

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

3 participants