Skip to content
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

WebUI caching issues with Nginx #1030

Open
lexiismadd opened this issue May 15, 2024 · 0 comments
Open

WebUI caching issues with Nginx #1030

lexiismadd opened this issue May 15, 2024 · 0 comments

Comments

@lexiismadd
Copy link

When Nginx has the default settings enabled, which treats caching normally, often when opening an action or other pages the browser is opening cached data.
If nginx is set with cache control headers "no-store" and "no-cache", the webui opens the most current data.
Deployment of st2 and st2web is very stock-standard config.

This issue can be replicated by simply modifying a simple action in the webui, saving it, closing that browser tab, then opening the action again in the webui, and the old cached data is loaded, not the most recent saved version.
Tested on 5 different browsers (edge, chrome, firefox, opera, brave) across two different OS's (Ubuntu, Win11) and two different methods of connecting (local network and via internet).. Issue persists across all..

Set the abovementioned cache control headers in the nginx config, and the issue is resolved.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant