• Hi
    I know this is a topic which was already posted but I’m getting nuts and I can’t figure out what’s going on

    I was using WPTouch + WP Super Cache + Cloudflare very well all together since last week.
    I changed some settings somehow and since I get randomly moboile or desktop page while browsing my site from a mobile.
    The problem might come from my .htaccess or from server settings as I had to make news settings

    I still get a notifications about WP Super Cache from WP Touch
    Is this warning still there because of an identified conflict or is this just a reminder ?

    If anyone can help I would be very VERY gratefull !

    WP-Super-Cache Settings :

    – Use mod_rewrite
    – Compress pages
    – Don’t cache pages for known users
    – Don’t cache pages with GET parameters
    – Cache rebuild.
    – Mobile device support
    – Remove UTF8/blog
    – Clear all cache files when a post or page is published or updated.
    – Extra homepage checks
    – Only refresh current page when comments made.

    – Rejected User Agents :
    facebookexternalhit/1.0
    facebookexternalhit/1.1
    Android
    BB10
    BlackBerry
    IEMobile/10.0
    IEMobile/7.0
    IEMobile/9.0
    iPad
    iPhone
    iPod
    MSIE 10.0
    Nexus 7
    P160U
    PlayBook
    SCH-I800
    Touch
    Xoom

    Plugins
    – WPTouch enabled

    .htaccess

    <Files “*”>
    order allow,deny
    allow from all
    </Files>

    Options -Indexes
    ServerSignature Off

    RewriteRule ^/index.php/?$ /1 [L]

    <ifModule mod_headers.c>
    Header unset ETag
    Header set Vary *
    </ifModule>
    FileETag none

    # BEGIN Cache-Control Headers
    <IfModule mod_headers.c>
    <FilesMatch “\\.(ico|jpe?g|png|gif|swf|css|gz)$”>
    Header set Cache-Control “max-age=2592000, public”
    </FilesMatch>
    <FilesMatch “\\.(js)$”>
    Header set Cache-Control “max-age=2592000, private”
    </FilesMatch>
    <filesMatch “\\.(html|htm)$”>
    Header set Cache-Control “max-age=7200, public”
    </filesMatch>
    # Disable caching for scripts and other dynamic files
    <FilesMatch “\.(pl|php|cgi|spl|scgi|fcgi)$”>
    Header unset Cache-Control
    </FilesMatch>
    </IfModule>
    # END Cache-Control Headers

    # MOD_DEFLATE COMPRESSION
    SetOutputFilter DEFLATE
    AddOutputFilterByType DEFLATE text/html text/css text/plain text/xml application/x-javascript application/x-httpd-php
    AddOutputFilterByType DEFLATE image/svg+xml application/xhtml+xml application/xml
    AddOutputFilterByType DEFLATE application/rdf+xml application/rss+xml application/atom+xml
    AddOutputFilterByType DEFLATE text/javascript application/javascript application/x-javascript
    AddOutputFilterByType DEFLATE application/x-font-ttf application/x-font-otf
    AddOutputFilterByType DEFLATE font/truetype font/opentype

    #Pour les navigateurs incompatibles
    BrowserMatch ^Mozilla/4 gzip-only-text/html
    BrowserMatch ^Mozilla/4\.0[678] no-gzip
    BrowserMatch \bMSIE !no-gzip !gzip-only-text/html
    BrowserMatch \bMSI[E] !no-gzip !gzip-only-text/html
    #ne pas mettre en cache si ces fichiers le sont déjà
    SetEnvIfNoCase Request_URI \.(?:gif|jpe?g|png)$ no-gzip
    #les proxies doivent donner le bon contenu
    Header append Vary User-Agent env=!dont-vary

    # BEGIN Expire headers
    <IfModule mod_expires.c>
    ExpiresActive On
    ExpiresDefault “access plus 7200 seconds”
    ExpiresByType image/jpg “access plus 2592000 seconds”
    ExpiresByType image/jpeg “access plus 2592000 seconds”
    ExpiresByType image/png “access plus 2592000 seconds”
    ExpiresByType image/gif “access plus 2592000 seconds”
    AddType image/x-icon .ico
    ExpiresByType image/ico “access plus 2592000 seconds”
    ExpiresByType image/icon “access plus 2592000 seconds”
    ExpiresByType image/x-icon “access plus 2592000 seconds”
    ExpiresByType text/css “access plus 2592000 seconds”
    ExpiresByType text/javascript “access plus 2592000 seconds”
    ExpiresByType text/html “access plus 7200 seconds”
    ExpiresByType application/xhtml+xml “access plus 7200 seconds”
    ExpiresByType application/javascript A259200
    ExpiresByType application/x-javascript “access plus 2592000 seconds”
    ExpiresByType application/x-shockwave-flash “access plus 2592000 seconds”
    </IfModule>
    # END Expire headers

    # BEGIN WPSuperCache
    <IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteBase /
    #If you serve pages from behind a proxy you may want to change ‘RewriteCond %{HTTPS} on’ to something more sensible
    RewriteCond %{REQUEST_URI} !^.*[^/]$
    RewriteCond %{REQUEST_URI} !^.*//.*$
    RewriteCond %{REQUEST_METHOD} !POST
    RewriteCond %{QUERY_STRING} !.*=.*
    RewriteCond %{HTTP:Cookie} !^.*(comment_author_|wordpress_logged_in|wp-postpass_).*$
    RewriteCond %{HTTP:X-Wap-Profile} !^[a-z0-9\”]+ [NC]
    RewriteCond %{HTTP:Profile} !^[a-z0-9\”]+ [NC]
    RewriteCond %{HTTP_USER_AGENT} !^.*(2.0\ MMP|240×320|400X240|AvantGo|BlackBerry|Blazer|Cellphone|Danger|DoCoMo|Elaine/3.0|EudoraWeb|Googlebot-Mobile|hiptop|IEMobile|KYOCERA/WX310K|LG/U990|MIDP-2.|MMEF20|MOT-V|NetFront|Newt|Nintendo\ Wii|Nitro|Nokia|Opera\ Mini|Palm|PlayStation\ Portable|portalmmm|Proxinet|ProxiNet|SHARP-TQ-GX10|SHG-i900|Small|SonyEricsson|Symbian\ OS|SymbianOS|TS21i-10|UP.Browser|UP.Link|webOS|Windows\ CE|WinWAP|YahooSeeker/M1A1-R2D2|iPhone|iPod|Android|BlackBerry9530|LG-TU915\ Obigo|LGE\ VX|webOS|Nokia5800).* [NC]
    RewriteCond %{HTTP:Accept-Encoding} gzip
    RewriteCond %{HTTPS} on
    RewriteCond %{DOCUMENT_ROOT}/wp-content/cache/supercache/%{SERVER_NAME}/$1/index-https.html.gz -f
    RewriteRule ^(.*) “/wp-content/cache/supercache/%{SERVER_NAME}/$1/index-https.html.gz” [L]

    RewriteCond %{REQUEST_URI} !^.*[^/]$
    RewriteCond %{REQUEST_URI} !^.*//.*$
    RewriteCond %{REQUEST_METHOD} !POST
    RewriteCond %{QUERY_STRING} !.*=.*
    RewriteCond %{HTTP:Cookie} !^.*(comment_author_|wordpress_logged_in|wp-postpass_).*$
    RewriteCond %{HTTP:X-Wap-Profile} !^[a-z0-9\”]+ [NC]
    RewriteCond %{HTTP:Profile} !^[a-z0-9\”]+ [NC]
    RewriteCond %{HTTP_USER_AGENT} !^.*(2.0\ MMP|240×320|400X240|AvantGo|BlackBerry|Blazer|Cellphone|Danger|DoCoMo|Elaine/3.0|EudoraWeb|Googlebot-Mobile|hiptop|IEMobile|KYOCERA/WX310K|LG/U990|MIDP-2.|MMEF20|MOT-V|NetFront|Newt|Nintendo\ Wii|Nitro|Nokia|Opera\ Mini|Palm|PlayStation\ Portable|portalmmm|Proxinet|ProxiNet|SHARP-TQ-GX10|SHG-i900|Small|SonyEricsson|Symbian\ OS|SymbianOS|TS21i-10|UP.Browser|UP.Link|webOS|Windows\ CE|WinWAP|YahooSeeker/M1A1-R2D2|iPhone|iPod|Android|BlackBerry9530|LG-TU915\ Obigo|LGE\ VX|webOS|Nokia5800).* [NC]
    RewriteCond %{HTTP:Accept-Encoding} gzip
    RewriteCond %{HTTPS} !on
    RewriteCond %{DOCUMENT_ROOT}/wp-content/cache/supercache/%{SERVER_NAME}/$1/index.html.gz -f
    RewriteRule ^(.*) “/wp-content/cache/supercache/%{SERVER_NAME}/$1/index.html.gz” [L]

    RewriteCond %{REQUEST_URI} !^.*[^/]$
    RewriteCond %{REQUEST_URI} !^.*//.*$
    RewriteCond %{REQUEST_METHOD} !POST
    RewriteCond %{QUERY_STRING} !.*=.*
    RewriteCond %{HTTP:Cookie} !^.*(comment_author_|wordpress_logged_in|wp-postpass_).*$
    RewriteCond %{HTTP:X-Wap-Profile} !^[a-z0-9\”]+ [NC]
    RewriteCond %{HTTP:Profile} !^[a-z0-9\”]+ [NC]
    RewriteCond %{HTTP_USER_AGENT} !^.*(2.0\ MMP|240×320|400X240|AvantGo|BlackBerry|Blazer|Cellphone|Danger|DoCoMo|Elaine/3.0|EudoraWeb|Googlebot-Mobile|hiptop|IEMobile|KYOCERA/WX310K|LG/U990|MIDP-2.|MMEF20|MOT-V|NetFront|Newt|Nintendo\ Wii|Nitro|Nokia|Opera\ Mini|Palm|PlayStation\ Portable|portalmmm|Proxinet|ProxiNet|SHARP-TQ-GX10|SHG-i900|Small|SonyEricsson|Symbian\ OS|SymbianOS|TS21i-10|UP.Browser|UP.Link|webOS|Windows\ CE|WinWAP|YahooSeeker/M1A1-R2D2|iPhone|iPod|Android|BlackBerry9530|LG-TU915\ Obigo|LGE\ VX|webOS|Nokia5800).* [NC]
    RewriteCond %{HTTPS} on
    RewriteCond %{DOCUMENT_ROOT}/wp-content/cache/supercache/%{SERVER_NAME}/$1/index-https.html -f
    RewriteRule ^(.*) “/wp-content/cache/supercache/%{SERVER_NAME}/$1/index-https.html” [L]

    RewriteCond %{REQUEST_URI} !^.*[^/]$
    RewriteCond %{REQUEST_URI} !^.*//.*$
    RewriteCond %{REQUEST_METHOD} !POST
    RewriteCond %{QUERY_STRING} !.*=.*
    RewriteCond %{HTTP:Cookie} !^.*(comment_author_|wordpress_logged_in|wp-postpass_).*$
    RewriteCond %{HTTP:X-Wap-Profile} !^[a-z0-9\”]+ [NC]
    RewriteCond %{HTTP:Profile} !^[a-z0-9\”]+ [NC]
    RewriteCond %{HTTP_USER_AGENT} !^.*(2.0\ MMP|240×320|400X240|AvantGo|BlackBerry|Blazer|Cellphone|Danger|DoCoMo|Elaine/3.0|EudoraWeb|Googlebot-Mobile|hiptop|IEMobile|KYOCERA/WX310K|LG/U990|MIDP-2.|MMEF20|MOT-V|NetFront|Newt|Nintendo\ Wii|Nitro|Nokia|Opera\ Mini|Palm|PlayStation\ Portable|portalmmm|Proxinet|ProxiNet|SHARP-TQ-GX10|SHG-i900|Small|SonyEricsson|Symbian\ OS|SymbianOS|TS21i-10|UP.Browser|UP.Link|webOS|Windows\ CE|WinWAP|YahooSeeker/M1A1-R2D2|iPhone|iPod|Android|BlackBerry9530|LG-TU915\ Obigo|LGE\ VX|webOS|Nokia5800).* [NC]
    RewriteCond %{HTTPS} !on
    RewriteCond %{DOCUMENT_ROOT}/wp-content/cache/supercache/%{SERVER_NAME}/$1/index.html -f
    RewriteRule ^(.*) “/wp-content/cache/supercache/%{SERVER_NAME}/$1/index.html” [L]
    </IfModule>

    # END WPSuperCache

    # BEGIN WordPress
    <IfModule mod_rewrite.c>
    RewriteRule ^index\.php$ – [L]
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule . /index.php [L]
    </IfModule>

    # END WordPress

    If anyone can help me this would be great. I tried to fix it for hours without succes

    Thank you so much !

    https://wordpress.org/plugins/wptouch/

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

    (@acohen5276)

    I also use WP Supercache and WPTouch. After doing an upgrade to WP Supercache, I’m having the same problem you are, I think. First, my readers reported getting a big black dot over the comment area when they tried to leave a comment. Now, I am getting the mobile version sometimes and the desktop version other times.

    I thought I had fixed the problem when I went to Advanced Settings on WP SuperCache and updated the Mod Rewrite, but the “fix” didn’t last. I’m not a tech person so I’m struggling here. Has anyone else responded to your query?

    michael1171

    (@michael1171)

    You could try to completely uninstall WP Supercache, but not just by hitting uninstall, also make sure everything is removed (check out here: https://wordpress.org/plugins/wp-super-cache/other_notes/)
    Then install it again, set it up again and don’t forget the user agents.

    Oh, one more thing
    As far as I understand, for WPtouch Pro(!) under WP Super Cache Settings > Plugins > WPtouch (support) has to be disabled! This is only for the free version of WPtouch. Don’t remember where I read that but I read it somewhere.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘WPTouch WP Super Cache showing randomly mobile/desktop pages’ is closed to new replies.