Initializr icon indicating copy to clipboard operation
Initializr copied to clipboard

Caching on site causes problems on app updates

Open jkonicki opened this issue 5 years ago • 1 comments

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 avatar Aug 21 '20 18:08 jkonicki

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>

ccheetham avatar Aug 21 '20 21:08 ccheetham