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
Updated vaadin-flow-bundle.html is not loaded in the browser #3501
Comments
The easiest way of doing this is probably to somehow make the production building done by the Maven plugin rename the produced files (based on what's listed in There might also be a feature in Polymer CLI that automatically does the renaming without us having to do anything else than enable that feature. |
As an additional enhancement, we could also update the logic in |
The hashing can happen on the polymer/gulp side or in the maven plugin with java. Some npm libraries that might do the job: https://www.npmjs.com/search?q=hash |
I've used gulp-rev-all to generate hash fingerprints and rename files, then another plugin to rewrite any occurrences. See my comment here with the example |
Before starting, make sure to see that there is no PRs open related to this, eg. @Artur- refactoring everything. Also take into account that there is the ES5 file to consider, which might have changed even though ES6 file has not. |
When updating a production build, the browser does not immediately load the new bundle so you end up with an old version of the app. The cache headers say that the browser should cache the file for an hour.
Preferrably, this should be solved as:
vaadin-flow-bundle.html
file contents to the name of the fileThat would mean no "check for new version" overhead and new versions immediately taken into use.
A simpler first version would be to just add a timestamp to the filename whenever it is created
The text was updated successfully, but these errors were encountered: