Forums

[resolved] [Plugin: WP Super Cache] index-mobile.html in Cache Folder (6 posts)

  1. mattla93
    Member
    Posted 5 months ago #

    Hello,

    what are the index-mobile.html.gz Files in the SuperCache Folder About?

    I thought that these files have the mobile Content of wptouch in it, so I modified the rewrite Rules to serve these Files directly to the Mobile User, but they have the normal page in it.

    For what are these Files for? I'm using WpTouch Pro.

  2. Donncha O Caoimh
    Member
    Posted 5 months ago #

    They're supposed to have the mobile theme in them. If not can you use the debug system in the plugin and visit your site with a mobile client and check if it's caught correctly?

  3. mattla93
    Member
    Posted 5 months ago #

    Strange, now it works perfectly. Maybe the nginx reload wasn't successfull and the Rewrite rules didn't match correctly.

    Another Question, which User Agents get the -mobile Cached Files?

    Are this these User Agents:

    RewriteCond %{HTTP_USER_AGENT} !^.*(2.0\ MMP|240x320|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|iPhone|iPod|Aspen|incognito|webmate|Android|2.1-update1|dream|CUPCAKE|froyo|BlackBerry9500|BlackBerry9520|BlackBerry9530|BlackBerry9550|BlackBerry\ 9800|webOS|s8000|bada).* [NC]
    RewriteCond %{HTTP_user_agent} !^(w3c\ |w3c-|acs-|alav|alca|amoi|audi|avan|benq|bird|blac|blaz|brew|cell|cldc|cmd-|dang|doco|eric|hipt|htc_|inno|ipaq|ipod|jigs|kddi|keji|leno|lg-c|lg-d|lg-g|lge-|lg/u|maui|maxo|midp|mits|mmef|mobi|mot-|moto|mwbp|nec-|newt|noki|palm|pana|pant|phil|play|port|prox|qwap|sage|sams|sany|sch-|sec-|send|seri|sgh-|shar|sie-|siem|smal|smar|sony|sph-|symb|t-mo|teli|tim-|tosh|tsm-|upg1|upsi|vk-v|voda|wap-|wapa|wapi|wapp|wapr|webc|winw|winw|xda\ |xda-).* [NC]

    or the user agents who are redirected to wptouch?

  4. Donncha O Caoimh
    Member
    Posted 5 months ago #

    Yeah, those user agents. Hopefully they match the ones wp-touch uses (they should I think)

  5. mattla93
    Member
    Posted 5 months ago #

    That's a missing feature, to serve static files to mobile user agents with mod_rewrite without passing php ;D

  6. Donncha O Caoimh
    Member
    Posted 5 months ago #

    I don't think it's worth the effort, unless someone sends me a patch. Serving cached files with PHP is just as fast as using mod_rewrite unless there's a huge deluge of traffic.

Reply

You must log in to post.

About this Topic