Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Sets cache headers for non cached redirect URLs #1487

Merged
merged 1 commit into from
Dec 6, 2024

Conversation

idlira
Copy link
Contributor

@idlira idlira commented Dec 6, 2024

Description

When creating a response marked as not cached (cacheSeconds = 0), no cache headers were added to the response.
With this change, cache-control: no-cache, max-age=0 will be added to the response headers.
Of course this header is suppressed when no caching time is present.

Additional Notes

  • This PR fixes or works on following ticket(s): OX-11230

Checklist

  • Code change has been tested and works locally
  • Code was formatted via IntelliJ and follows SonarLint & best practices

When creating a response marked as not cached (cacheSeconds = 0), no cache headers were added to the response.

With this change, `cache-control: no-cache, max-age=0` will be added to the response headers.

Of course this header is suppressed when no caching time is present

Fixes: OX-11230
@idlira idlira added 🐛 Bugfix Contains only a small fix for an existing bug 👶🏻 Trivial Easy to review labels Dec 6, 2024
@idlira idlira merged commit 06e9569 into develop Dec 6, 2024
5 checks passed
@idlira idlira deleted the ili/OX-11230-redirect-nocache branch December 6, 2024 14:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🐛 Bugfix Contains only a small fix for an existing bug 👶🏻 Trivial Easy to review
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants