-
Notifications
You must be signed in to change notification settings - Fork 6.1k
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
Handling re-caching after new application version deployment? #852
Comments
Well the one thing you really want to uncache is the Not sure if that answers the question? I guess an automatic setup would be nice but that strongly depends on how you deploy… |
@mxstbr Sure thing, but I'm just thinking of how to actually achieve it, i.e. assume deployment to heroku for example, what can the steps / places be where I'd need to do un-caching? is it on the serverside or can I do it during build? |
I ran into similar issues when using this boilerplate for an application served as static pages. The offline plugin made browsers run the scripts from the cached worker rather than grabbing a new one from the host (until I manually cleared them from the browser cache); even if each item in the build had a hashed name and the CDN was configured for a short cache period. |
That should definitely not happen! @NekR any ideas? |
Well, this question is raised each month or so. Here is the answer: https://github.com/NekR/offline-plugin/blob/master/docs/updates.md If that doc doesn't help, please provide detailed steps about how you are trying to update website. All steps, e.g. what you do with build and what you do with browser. |
I'm facing the same issue with my project. For some reason, |
Again, this doesn't help without details. All what you describe is a On Aug 17, 2016 2:31 PM, "maheffa" notifications@github.com wrote:
|
I don't think it's the issue. HTML files might be cached and it's totally fine. |
@mxstbr should we close this? |
Since you said this question is raised every month or so, would it make sense for there to be even just a small note in the documentation for react-boilerplate to seek out the documentation for offline-plugin? While finding the library documentation is an obvious next-step for more experienced developers, it might reduce the redundant questions, if nothing else? |
@elswenson it probably makes sense, but it's up to this' repo maintainers to add it or not. If there is a FAQ or Notes section somewhere here, when that would be perfect place for such a note. |
Yeah sure, there is a FAQ! A PR adding this to the FAQ would be much appreciated 👍 |
@mxstbr if I'll have time, too much to handle already 🙂 |
@NekR Could you provide a rough outline of what you had in minder to add to the FAQ? Then others can polish it up and open a PR. - Thanks |
@gihrig I meant something like this: "Your production site isn't working? You update the code and nothing changes? It drives you insane? Here is the answer -- https://github.com/NekR/offline-plugin/blob/master/docs/updates.md" |
@NekR That's perfect, thanks! @Vadorequest Would you like to open a PR with these changes to FAQ.md ? In FAQ we should also include the 'workaround' steps discussed in #1074 OP. |
FAQ updated. Thanks @Vadorequest 🎉 |
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
I found myself deploying code to production today and not seeing any updates in the application, only after I deleted all cache in the website I was able to see my changes leading to my question. What is correct way to handle re-cache of the website when new feature is deployed to production?
The text was updated successfully, but these errors were encountered: