-
Notifications
You must be signed in to change notification settings - Fork 325
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
Service Worker gets cached #138
Comments
We have created an issue in Pivotal Tracker to manage this: https://www.pivotaltracker.com/story/show/155135355 The labels on this github issue will be updated when the story is started. |
I suggest one of the following options:
The staticfile buildpack is intended to be used to host static content, not web applications. (@dgodd) |
Thanks, @sclevine. Using |
@mastertinner , did you find a solution to this problem? I am also having the same issue. |
@patrickliangli, I haven't tried anything specific yet. As far as I can tell, putting my code snippet from above into a |
This seems to have been resolved by either of the two options @sclevine gave. |
What version of Cloud Foundry and CF CLI are you using? (i.e. What is the output of running
cf curl /v2/info && cf version
?CLI 6.34.1 and CF 2.100.0
What version of the buildpack you are using?
1.4.22
If you were attempting to accomplish a task, what was it you were attempting to do?
Push an app created with create-react-app.
What did you expect to happen?
I expect the deployed service worker to be refreshed when I push a new version of the app.
What was the actual behavior?
The service worker gets cached for a very long time which causes my app to remain stale, even if I push new versions. I'm guessing that this is the same for anybody who uses service workers.
I'm guessing that we would need to add something like
to the nginx config template.
The problem is described here.
The solution to this problem cor create-react-app for different hosting providers is described here but I'm unsure how I would apply this to Cloud Foundry since providing one's own
nginx.conf
is deprecated.The text was updated successfully, but these errors were encountered: