Title: Jetpack mobile and nginx fastcgi_cache
Last modified: August 21, 2016

---

# Jetpack mobile and nginx fastcgi_cache

 *  [ddutra](https://wordpress.org/support/users/ddutra/)
 * (@ddutra)
 * [12 years, 7 months ago](https://wordpress.org/support/topic/jetpack-mobile-and-nginx-fastcgi_cache/)
 * Hello guys,
 * I am trying jetpack mobile theme out and it seems just what I need, problem is
   I rely on nginx fastcgi_cache to cache rendered html to ram disk (tmpfs). That
   gives me the speed I need and keeps my websites up even if php or mysql goes 
   down.
 * Well, problem is if the first hit on the page comes from a mobile device, mobile
   html gets cached and served to everyone. Same thing happens if first visit to
   page is from desktop – mobiles will fetch that page.
 * I am sorry but I really dont know how to ask. Can you guys give me any clue on
   the best approach to maintain cache but get the mobile theme benefits?
 * Currently I am looking at detecting mobile visitors at server level, but I have
   no ideia what I’ll do once I find out how to…
 * Any help is welcome.
 * Best regards.

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

 *  [Pothi Kalimuthu](https://wordpress.org/support/users/pothi/)
 * (@pothi)
 * [12 years, 7 months ago](https://wordpress.org/support/topic/jetpack-mobile-and-nginx-fastcgi_cache/#post-4209866)
 * If you post your current config, that might help someone to see what one could
   do with it to cache and serve differently for mobile and non-mobile browsers.
 *  Thread Starter [ddutra](https://wordpress.org/support/users/ddutra/)
 * (@ddutra)
 * [12 years, 7 months ago](https://wordpress.org/support/topic/jetpack-mobile-and-nginx-fastcgi_cache/#post-4209876)
 * Its basic nginx wordpress config.
 * Here is my virtual host
 * > server {
   >  server_name [http://www.joaodedeus.com.br](http://www.joaodedeus.com.br)
   > joaodedeus.com.br; root /var/www/joaodedeus.com.br; index index.php; include/
   > etc/nginx/conf.d/wordpress; }
 * And here are nginx.conf and wordpress specifics file I include on the virtual
   hosts:
    [http://ddutra.s3.amazonaws.com/nginx/nginx.conf](http://ddutra.s3.amazonaws.com/nginx/nginx.conf)
   [http://ddutra.s3.amazonaws.com/nginx/wordpress](http://ddutra.s3.amazonaws.com/nginx/wordpress)
 * Any help is welcome. best regards.

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

The topic ‘Jetpack mobile and nginx fastcgi_cache’ is closed to new replies.

 * 2 replies
 * 2 participants
 * Last reply from: [ddutra](https://wordpress.org/support/users/ddutra/)
 * Last activity: [12 years, 7 months ago](https://wordpress.org/support/topic/jetpack-mobile-and-nginx-fastcgi_cache/#post-4209876)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
