Uploaded image for project: 'Red Hat build of Keycloak'
  1. Red Hat build of Keycloak
  2. RHBK-3919

Caching of static theme resources in dev mode is disabled [GHI#44287]

XMLWordPrintable

    • False
    • Hide

      None

      Show
      None
    • False

      Before reporting an issue

      [x] I have read and understood the above terms for submitting issues, and I understand that my issue may be closed without action if I do not follow them.

      Area

      core

      Describe the bug

      When running in development mode (start-dev), the static theme resources (css, js, images) have a Cache-Control header with a value of max-age=2592000 instead of no-cache.

      Until version 26.4.4 the static resources had a cache-control header of no-cache. Beginning with 26.4.5 (and also nightly) the cache-control header is set to the default production mode value.

      Version

      26.4.5, nightly

      Regression

      [x] The issue is a regression

      Expected behavior

      When starting Keycloak in development mode, the Cache-Control header of all static theme resources should be no-cache, like before.

      Actual behavior

      When starting Keycloak in development mode, the Cache-Control header of all static theme resources is max-age=2592000 (default for production mode)

      How to Reproduce?

      Start a Keycloak server (26.4.5 or nightly) with start-dev command and inspect the headers of the static theme resources.

      Anything else?

      No response

              Unassigned Unassigned
              pvlha Pavel Vlha
              Keycloak Core (shared)
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated:
                Resolved: