Resource hotfix is not served imediately, only after cache flush

Description

Failing tests https://magnolia-cms.atlassian.net/browse/MGNLCE-395 is valid
Resource hotfix is not served through resource servelet until instance restart. cache is manually flushed.
Tested on https://nightly-63.magnolia-cms.com/.resources/tours/webresources/views/filters.html

Workaround:
turn on develop mode

or

disable /modules/cache/config/contentCaching/defaultPageCache/cachePolicy/shouldBypassVoters/resources voter
or
flush cache manually after resource change

Activity

Show:

Evzen Fochr August 27, 2024 at 9:40 AM

Findings:
M6.2 and 6.3 both caching requests like “/.resources/test-module/test.html“ because of “/modules/cache/config/contentCaching/defaultPageCache/cachePolicy/shouldBypassVoters/resources” (disabled in “magnolia.develop=true“ mode)
In 6.2 we automatically flush cache on resource change. No such mechanism is present in 6.3.

Fixed

Details

Assignee

Reporter

Priority

Magnolia Release

Labels

Fix versions

Story Points

Sprint

More fields

Created August 26, 2024 at 10:50 AM
Updated November 14, 2024 at 9:27 AM
Resolved September 6, 2024 at 11:53 AM