Forum Discussion
Frank_Mancini_3
Nimbostratus
Feb 18, 2009What are the steps to NOT cache a specific file?
Example: /homepage/home.html
What are the steps if I don't want to cache:
1) Just this one page
2) The path /homepage/*
3) Just this one page and all the query strings home.html?file=test
- hoolio
Cirrostratus
You can use HTTP::path to retrieve the requested path (URI minus the query string) and CACHE::disable to selectively disable caching for that request.when HTTP_REQUEST { Check if path is just one page (dont_cache.html) if {[HTTP::path] ends_with "dont_cache.html"}{ Disable caching for this request CACHE::disable } }
- While iRules are great for many things managing what WebAccelerator caches and doesn't cache is not one of them. This should be managed completely by the WebAccelerator policy. Disabling caching or WebAccelerator via an iRule for a page will result in none of the embedded content being assembled with Intelligent Browser Referencing or MultiConnect if those are enabled.
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