[MGNLCACHE-294] Expand options for browser cache control headers Created: 09/May/23  Updated: 14/Sep/23  Resolved: 05/Sep/23

Status: Closed
Project: Cache Modules
Component/s: cache core
Affects Version/s: 5.9.5
Fix Version/s: 6.0.0, 5.9.8

Type: Improvement Priority: Neutral
Reporter: Richard Gange Assignee: Dai Ha
Resolution: Fixed Votes: 0
Labels: cache-control
Σ Remaining Estimate: 0d Remaining Estimate: 0d
Σ Time Spent: 3h Time Spent: 3h
Σ Original Estimate: Not Specified Original Estimate: Not Specified

Attachments: PNG File directive.png    
Issue Links:
Relates
relates to MAGNOLIA-8068 Cache control header lost in virtual ... Accepted
relates to MAGNOLIA-4135 m_main-trunk-forked-test fail now and... Closed
documentation
to be documented by MGNLCACHE-339 DOC: Expand options for browser cache... Closed
relation
Sub-Tasks:
Key
Summary
Type
Status
Assignee
MGNLCACHE-341 Implement Sub-task Completed Dai Ha  
MGNLCACHE-343 Review Sub-task Completed Milan Divilek  
MGNLCACHE-344 piQA Sub-task Completed Milan Divilek  
MGNLCACHE-345 QA Sub-task Completed Robert Šiška  
Template:
Acceptance criteria:
Empty
Task DoD:
[X]* Doc/release notes changes? Comment present?
[X]* Downstream builds green?
[X]* Solution information and context easily available?
[X]* Tests
[X]* FixVersion filled and not yet released
[ ]  Architecture Decision Record (ADR)
Release notes required:
Yes
Documentation update required:
Yes
Date of First Response:
Epic Link: Support
Sprint: DevX 45
Story Points: 5
Team: DeveloperX
Work Started:
Approved:
Yes

 Description   

I'd like to be able to configure different cache control responses.

Examples

Cache-Control value Description
max-age=86400 For up to one day (60 seconds x 60 minutes x 24 hours), the response can be cached by browsers and intermediary caches.
private, max-age=600 Browsers can cache responses for 60 seconds (but not intermediary caches) for up to 10 minutes.
public, max-age=31536000 Any cache can store the response for 1 year.

Notes
Currently I only have control over the expiration (max-age). The value public is hard coded. Add a configuration option where public is the default but can be changed to one of the other options.

Documentation
Show how to use the configuration option. Mention the default. If possible, show how to change the values based on request rules.


Generated at Sun Feb 11 23:54:04 CET 2024 using Jira 9.4.2#940002-sha1:46d1a51de284217efdcb32434eab47a99af2938b.