Forum Discussion
Jask2002_40661
Nimbostratus
Oct 08, 2012iRule to add Cache-Control:Public for files download issue over ssl
For the problem of pdf/excel/doc file download over HTTPS and IE issue
following article says create a irule to add Cache-Control:Public
http://support.f5.com/kb/en-us/solu...r=22662958 ...
What_Lies_Bene1
Cirrostratus
Oct 08, 2012A data group might be better for performance but try something like this;
when HTTP_RESPONSE {
if { [HTTP::header value Content-Type] contains "application/pdf" } {
HTTP::header replace Pragma public
HTTP::header replace Cache-Control public }
elseif { [HTTP::header value Content-Type] contains "application/vnd.ms-excel" } {
HTTP::header replace Pragma public
HTTP::header replace Cache-Control public }
elseif { [HTTP::header value Content-Type] contains "application/msword" } {
HTTP::header replace Pragma public
HTTP::header replace Cache-Control public }
else { return }
}
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
