Forum Discussion
Darren_Person_2
Nimbostratus
Oct 02, 2007Duplicate Cache Entries for Firefox & IE?
Hi All,
We recent;y upgraded to 9.4.1 and have noticed an issue in RAMCache. If I click on a page in IE, I see the page get put into RAMCache. If I go into Firefox and click on that exact same URL, I will see a duplicate entry in RAMCache with a different time stamp. Subsequent requests to that content increase the RAMCache count for each object individually - how is this possible and do you know how to fix it?
Thanks!!
- Colin_Walker_12Historic F5 AccountThis sounds more like a product support type of question, rather than an iRules development issue. Are you using iRules to decide what to cache?
- bl0ndie_127134Historic F5 AccountWell if the response header contains 'Vary: User-Agent', we have to cache the content separately (even if its the same uri). Servers add this header if they know that the content needs to be rendered differently on different browsers, ex. Java Script files.
- Darren_Person_2
Nimbostratus
Hi Bl0ndie, - The CACHE::useragent command is a way to override the client user agent string in the cache system without actually changing the User-Agent header.
when HTTP_REQUEST { if {[HTTP::header User-Agent] contains “MSIE”} { CACHE::useragent “MSIE” } }
when HTTP_REQUEST { CACHE::useragent "GENERIC-USER-AGENT" }
- By the way, you might wonder what the difference between the CACHE::useragent and the CACHE::userkey values are. The CACHE::userkey allows users to add data to the cache key. Its so similar to CACHE::uri that we have stop asking people to use it any more. CACHE::useragent on the other hand only adds the data to the key if the content is user agent specific. Otherwise it is a no-op.
- Darren_Person_2
Nimbostratus
Hi Joe, - Darren_Person_2
Nimbostratus
Just as a follow up on this issue - we are still working through it with support, but here are the findings.when HTTP_REQUEST { set var_accept_encoding [string tolower [HTTP::header "Accept-Encoding"]] if {$var_accept_encoding contains "gzip"} { CACHE::accept_encoding "gzipped" } else { CACHE::accept_encoding "not-gzipped" } }
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