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

Cache No POST

Problem this snippet solves:

Disable RAMcache for POST request responses.

Code :

when HTTP_REQUEST {
  if { [HTTP::method] equals "POST" } {
    CACHE::disable
  } else {
    CACHE::enable
  }
}

Tested this on version:

10.0
Published Jan 30, 2015
Version 1.0
acceleration
application delivery
cache
devops
iRules
Darren_Person_2's avatar
Darren_Person_2
Icon for Nimbostratus rankNimbostratus
Joined June 25, 2006
View Profile
Darren_Person_2's avatar
Darren_Person_2
Icon for Nimbostratus rankNimbostratus
Joined June 25, 2006
View Profile

1 Comment

Sort By
  • Most Liked
  • Oldest
  • Newest
  • JRahm's avatar
    JRahm
    Icon for Admin rankAdmin
    Jan 30, 2015
    contributed by dperson1

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