Screenshots are not cached in the client browser due to missing No-Vary-Search header
Describe the bug
We use the token query parameter to secure screenshots. However, since we don't expose the correct No-Vary-Search header, the screenshot are not cached.
To Reproduce
Steps to reproduce the behavior:
0. Set tolgee.authentication.secured-image-retrieval: true
- Go to Translations view
- Add some screenshot
- Open developer tools > network tab
- refresh
- See error screenshot is not cacehd A clear and concise description of what you expected to happen.
Screenshots If applicable, add screenshots to help explain your problem.
Versions and environment
- Tolgee Platform version: [e.g. 3.120.0
Additional context Add any other context about the problem here.
Tried to solve this by using the No-Vary-Search header to enable proper caching of screenshots in the client browser. However, the header is not yet widely supported across browsers, and it does not reliably influence caching behavior.
Due to the current lack of browser support, this approach isn’t feasible at the moment and needs to be reconsidered.