[keycloak-dev] Themes: Browser cache not used for static resources (img, css, js)

jo0815 jo0815 at gmx.de
Tue Apr 23 14:09:35 EDT 2019


Hello,

I've been deveoping custom keycloak themes which is pretty straight
forward thanks to the provided documentation.
I am using version 4.8.3.Final.

Regarding caching I only see options for freemarker templates caching in
standalon.xml, theme section.
Opening the network view in Firefox I notice that no caching headers are
uses for statice resouces (img, css, js).
Thus every visit of the login page reloads all linked static resources
from the server.

So my question is:
How can I provide client side caching of static resources (perhaps by
etags with file content hash)?


Thanks
Jonathan Strampp




More information about the keycloak-dev mailing list