You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I had this problem for longer (older Keycloaks eg v19) now and im seeking help.
I have a css/custom.css which is included in my themes.properties.
Everytime I try to change the css, the css doesnt get updated.
My steps are like this:
build new theme with new custom.css and move to /providers
remove cached data manually: rm -r data/tmp/*
rebuild keycloak: bin/kc.sh build
start kc with chaches disabled for testing: bin/kc.sh start --spi-theme--static-max-age=-1 --spi-theme--cache-themes=false --spi-theme--cache-templates=false
delete Browser Cache
My workaround currently is to rename the css file and replace it in the themes.properties, which might be ok one or two times but I dont really want to do that.
Can anyone reproduce this problem or has a solution?
Thanks!
Update: Okay so when I deactivate caching in the browser dev tools > network analysis, the new css is loaded.
I see that the header "cache-control" is set to "no-cache"
The no-cache response directive indicates that the response can be stored in caches, but the response must be validated with the origin server before each reuse, even when the cache is disconnected from the origin server.
Currently I don't know how this validation is working, to know if it is even a keycloak issue or not
Update2: So I don't seem to have any proxy caching inbetween so I believe that it's a keycloak issue. How do you guys handle this?
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi,
I had this problem for longer (older Keycloaks eg v19) now and im seeking help.
I have a css/custom.css which is included in my themes.properties.
Everytime I try to change the css, the css doesnt get updated.
My steps are like this:
My workaround currently is to rename the css file and replace it in the themes.properties, which might be ok one or two times but I dont really want to do that.
Can anyone reproduce this problem or has a solution?
Thanks!
Update: Okay so when I deactivate caching in the browser dev tools > network analysis, the new css is loaded.
I see that the header "cache-control" is set to "no-cache"
Currently I don't know how this validation is working, to know if it is even a keycloak issue or not
Update2: So I don't seem to have any proxy caching inbetween so I believe that it's a keycloak issue. How do you guys handle this?
Beta Was this translation helpful? Give feedback.
All reactions