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

Stian Thorgersen sthorger at redhat.com
Wed Apr 24 04:17:30 EDT 2019


Not sure why you are saying resources are not cached as they are. Just look
at resources loaded by the default theme.

On Tue, 23 Apr 2019 at 20:29, jo0815 <jo0815 at gmx.de> wrote:

> 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
>
>
> _______________________________________________
> keycloak-dev mailing list
> keycloak-dev at lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/keycloak-dev
>


More information about the keycloak-dev mailing list