Title: [Plugin: WP Super Cache] HTTP_PROFILE?
Last modified: August 19, 2016

---

# [Plugin: WP Super Cache] HTTP_PROFILE?

 *  [citypaper](https://wordpress.org/support/users/citypaper/)
 * (@citypaper)
 * [16 years, 5 months ago](https://wordpress.org/support/topic/plugin-wp-super-cache-http_profile/)
 * The caching is not picking up certain mobile devices in the htaccess directives
   because it needs to detect the $_SERVER[‘HTTP_PROFILE’] variable.
 * There does not seem to be a way to do this in the .htaccess, is there a place
   in the SuperCache code to add this detection?

Viewing 6 replies - 1 through 6 (of 6 total)

 *  [Donncha O Caoimh (a11n)](https://wordpress.org/support/users/donncha/)
 * (@donncha)
 * [16 years, 5 months ago](https://wordpress.org/support/topic/plugin-wp-super-cache-http_profile/#post-1259496)
 * What is the HTTP_PROFILE set to? I haven’t ever come across it. Is there any 
   overlap between clients that trigger that variable and the mobile user agents
   that the plugin detects?
 *  Thread Starter [citypaper](https://wordpress.org/support/users/citypaper/)
 * (@citypaper)
 * [16 years, 5 months ago](https://wordpress.org/support/topic/plugin-wp-super-cache-http_profile/#post-1259523)
 * HTTP_PROFILE and HTTP_X_WAP_PROFILE are two server variables than can be set 
   by mobile devices. If one is present it is a mobile browser.
 * Works well with this function:
    [http://detectmobilebrowsers.mobi/](http://detectmobilebrowsers.mobi/)
 * But since SuperCache is leaning on the .htaccess for detection it is missing 
   it.
 * My blackberry is sending the user agent as Firefox, so supercache by passes it
   as mobile. But the function linked to above detects it as mobile because it searches
   for the two server variables I mentioned.
 * I’m looking but having a surprisingly hard time finding documentation on these
   variables, but they definitely are there.
 *  Thread Starter [citypaper](https://wordpress.org/support/users/citypaper/)
 * (@citypaper)
 * [16 years, 5 months ago](https://wordpress.org/support/topic/plugin-wp-super-cache-http_profile/#post-1259543)
 * Just looking at some of the SuperCache code it seems there is a place for this
   detection to be added, but I’ll defer to an expert for now.
 *  [Donncha O Caoimh (a11n)](https://wordpress.org/support/users/donncha/)
 * (@donncha)
 * [16 years, 5 months ago](https://wordpress.org/support/topic/plugin-wp-super-cache-http_profile/#post-1259552)
 * Unfortunately I don’t want to look at the code on that site as it’s for non commercial
   use and not compatible with the GPL. Are those variables set to anything specific
   or just set to 1 when you visit with a mobile client?
 * You’ll need to look in your .htaccess and wp-cache-phase1.php for the mobile 
   code. No idea if you can check for those variables in mod_rewrite rules however.
 *  Thread Starter [citypaper](https://wordpress.org/support/users/citypaper/)
 * (@citypaper)
 * [16 years, 5 months ago](https://wordpress.org/support/topic/plugin-wp-super-cache-http_profile/#post-1259791)
 * There are ways to do it by hacking those variables in, but really I think I had
   my .htaccess order wrong. It was working in my MU blog, but not single install,
   so a little examination and it seems to be all good.
 *  Thread Starter [citypaper](https://wordpress.org/support/users/citypaper/)
 * (@citypaper)
 * [16 years, 5 months ago](https://wordpress.org/support/topic/plugin-wp-super-cache-http_profile/#post-1259795)
 * Nope. Scratch that. Not working. Having a weird back and forth.

Viewing 6 replies - 1 through 6 (of 6 total)

The topic ‘[Plugin: WP Super Cache] HTTP_PROFILE?’ is closed to new replies.

 * 6 replies
 * 2 participants
 * Last reply from: [citypaper](https://wordpress.org/support/users/citypaper/)
 * Last activity: [16 years, 5 months ago](https://wordpress.org/support/topic/plugin-wp-super-cache-http_profile/#post-1259795)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
