Forum Discussion
Modify Cache-Control Header
Here is the rule I have so far. But I need it to be something like "max-age > 0"
when HTTP_RESPONSE {
if { [HTTP::header value "Cache-Control"] contains "max-age" } {
set cache_control "public,max-age=900"
HTTP::header replace "Cache-Control" $cache_control
}
}
Any ideas?
TY
1 Reply
- Arie
Altostratus
Wouldn't the type be "private" rather than the "max-age" being 0?
If not, you can check for the existence of "max-age=0".
Otherwise, "string" is your friend (http://www.tcl.tk/man/tcl8.4/TclCmd/string.htm).
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)Recent Discussions
Related Content
* Getting Started on DevCentral
* Community Guidelines
* Community Terms of Use / EULA
* Community Ranking Explained
* Community Resources
* Contact the DevCentral Team
* Update MFA on account.f5.com