How can I blacklist caching for certain browsers?
-
I’ve got a bit of an issue with this plugin when it comes to caching in certain browsers.
I use a bit of browser sniffing to serve up some things only to specific browsers. Some examples:
– On iOS devices, touch icons get added to the header
– In Chrome,<meta name="theme-color" content="#222222" />
gets added to the header
– In IE, a “legacy” stylesheet gets added to fix a few IE specific bugsMost of these I could just serve to all browsers without issue, but that last one is the real problem. When someone visits the site in IE, and cache gets regenerated, the IE version of the page gets served to all subsequent users. This causes a lot of weird and unexpected behavior, primarily breaking certain responsive features.
How can I tell WP Super Cache “if it’s IE, don’t use this request to cache” ?
- The topic ‘How can I blacklist caching for certain browsers?’ is closed to new replies.