F5 Sites
  • F5.com
  • LearnF5
  • NGINX
  • MyF5
  • Partner Central
Contact
  • Under Attack?
  • F5 Support
  • DevCentral Support
  • F5 Sales
  • NGINX Sales
  • F5 Professional Services
Skip to contentBrand Logo
Forums
CrowdSRC
Articles
Groups
EventsSuggestionsHow Do I...?
RegisterSign In
  1. DevCentral
  2. CrowdSRC
  3. CodeShare

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.0
application delivery
cache
devops
http
iRules
Opher_Shachar_6's avatar
Opher_Shachar_6
Icon for Nimbostratus rankNimbostratus
Joined January 12, 2012
View Profile
Opher_Shachar_6's avatar
Opher_Shachar_6
Icon for Nimbostratus rankNimbostratus
Joined January 12, 2012
View Profile
Vova_200520's avatar
Vova_200520
Icon for Altostratus rankAltostratus
Feb 04, 2016
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

ABOUT DEVCENTRAL

DevCentral NewsTechnical ForumTechnical ArticlesTechnical CrowdSRCCommunity GuidelinesDevCentral EULAGet a Developer Lab LicenseBecome a DevCentral MVP

RESOURCES

Product DocumentationWhite PapersGlossaryCustomer StoriesWebinarsFree Online CoursesF5 CertificationLearnF5 Training

SUPPORT

Manage SubscriptionsProfessional ServicesProfessional ServicesCreate a Service RequestSoftware DownloadsSupport Portal

PARTNERS

Find a Reseller PartnerTechnology AlliancesBecome an F5 PartnerLogin to Partner Central

F5 logo©2024 F5, Inc. All rights reserved.
TrademarksPoliciesPrivacyCalifornia PrivacyDo Not Sell My Personal Information