Forum Discussion
Fede_29112
Nimbostratus
Jun 25, 2008Rewriting of HTTP Headers
Hi everybody.
I'm new in this community and it could be possible that this issue has been already treated.
I'm having a problem with my WA 4500. If I access directly to m...
hoolio
Cirrostratus
Jun 25, 2008Hi Federico,
You can save the URI on the request and then reference it in HTTP_RESPONSE:
when HTTP_REQUEST {
Save the URI
set uri [HTTP::uri]
}
when HTTP_RESPONSE {
if {([HTTP::header Cache-Control] eq "private, max-age=3600") and ($uri ends_with “.html”)} {
HTTP::header replace Cache-Control "public, max-age=3600"
}
}
Aaron
Recent Discussions
Related Content
DevCentral Quicklinks
* 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
Discover DevCentral Connects