Thanks to visit codestin.com
Credit goes to github.com

Skip to content

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

@dasniko

Description

@dasniko

Before reporting an issue

  • 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

  • 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

Metadata

Metadata

Assignees

No one assigned

    Type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions