Cache Expire
Problem this snippet solves: This iRule sets caching headers Expires and Cache-Control on the response. Mostly the use case will be to set client-side caching of static resources as images, styleshee...
Published Jan 30, 2015
Version 1.0Opher_Shachar_6
Nimbostratus
Joined January 12, 2012
Opher_Shachar_6
Nimbostratus
Joined January 12, 2012
Vova_200520
Feb 04, 2016Altostratus
Hi,
Good job. For my use case I found a few problems with this rule.
1. When you have double extensions (like file.xml.md5) it's not working. The "set period" section needs to be removed.
2. In HTTP_RESPONSE is good to add a check if we have mime type in the datagroup otherwise it will overwrite expire_content_timeout with "".
Let me know if you want to see my tuned rule