added no-store header to st2 nginx configuration#6264
added no-store header to st2 nginx configuration#6264fdrab wants to merge 1 commit intoStackStorm:masterfrom
Conversation
cached versions of workflows
|
would there be a performance impact if the no-store, no-cache was put at the beginning on the conf? It was reported to me that the issue is still there if it's at the end in / I need to double check |
|
I have no idea how to set this for / location only. I've now tried everything. Is it an issue if this was a global header? |
guzzijones
left a comment
There was a problem hiding this comment.
i have also seen this internally with our gui devs. I am fine with no store cache on nginx.
|
Can you please validate with them where do they put the headers? I've put them into the / location, but it has been reported to me by my devs that this doesn't seem to work and they're still facing issues because they're loading stale flows from the cache. So, before this is merged, it would be nice if we knew whether this actually works. |
guzzijones
left a comment
There was a problem hiding this comment.
I was hoping this was the fix. I will have to dig a little deeper on my end.
|
Have your users disabled their cache locally? |
|
no, but I haven't asked them to (and all the guides on how to do this on the web are sort of... hacky). I've had a setup on a virtual machine, where the install was local and this was a set and forget kind of thing. But now I'm moving to EKS and while I can just set it in the st2web containers and reload nginx, I don't like the thought of doing this after every update to the pipeline that restarts the pods |
Added the no-store cache control header in order to prevent webui from serving cached and not up-to-date versions of opened workflows.