Skip to content
This repository has been archived by the owner on Nov 21, 2020. It is now read-only.

Caching on site causes problems on app updates #124

Open
jkonicki opened this issue Aug 21, 2020 · 1 comment
Open

Caching on site causes problems on app updates #124

jkonicki opened this issue Aug 21, 2020 · 1 comment
Assignees
Labels
bug Something isn't working

Comments

@jkonicki
Copy link
Contributor

Describe the bug

The cache holds the version values and requires users to force refresh (sometime more than once).

Steps to reproduce

Steps to reproduce the behavior:
1.Use App
2. Update app version i.e. Steeltoe 2.4.3 to Steeltoe 2.4.4
3. Check the app and the cached version will show.
4. If the user selects the cached version it will give an invalidparam error message.

Expected behavior

Remove cache or add a cache timeout. We need to see the updated version.

image (5)

@jkonicki jkonicki added the bug Something isn't working label Aug 21, 2020
@ccheetham
Copy link
Contributor

Tried following with no success:

Added following headers to <head>:

<meta http-equiv="Cache-Control" content="no-cache, no-store, must-revalidate" />
<meta http-equiv="Pragma" content="no-cache" />
<meta http-equiv="Expires" content="0" />

Added following to HTTP headers:

Cache-Control: no-store,no-cache
Pragma: no-cache

Added ?xxx to HTML:

<script src="/static/js/bundle.js?001"></script>
<script src="/static/js/0.chunk.js?001"></script>
<script src="/static/js/main.chunk.js?001"></script>

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants