• Hi,

    I have run Pagespeed Insights and it seems that files served to mobiles through WPTouch are not compressed – one of my results is “Compressing http://mysite/mypost/ could save 20KiB (75% reduction).”

    I use WP Super Cache and have the option “Compress pages so they’re served more quickly to visitors” option ticked…but from what I understand, your caching plugin guide tells us to add all mobile devices to the “Rejected user agents” list, which would have the effect of ensuring they are excluded from the caching and compression mechanism?

    The article says “Fortunately, most caching plugins and services may be optimized for mobile use by disabling caching when mobile devices are detected.” i.e. WPTouch doesn’t use the caching and compression features that WP Super Cache enables for my desktop site.

    Firstly, how does disabling the caching for mobile devices optimise for mobile use? Logic would dictate that disabling the caching and compression means it takes longer to serve a file (it’s not served from the cache), and that the file is larger (not compressed).

    Secondly, how do I enable compression for files served through WPTouch?

    Thanks.

Viewing 1 replies (of 1 total)
  • Hi,

    You’re right that disabling caching for mobile users will prevent any performance improvements on mobile, but the reason that we suggest this is so that your mobile (and desktop) users aren’t accidentally served the wrong version of the site. Most caching plugins are not able to distinguish between mobile and desktop users, and do not realize that WPtouch creates a completely separate mobile version of the site. As a result, with caching plugins enabled for mobile, mobile users can get the desktop version of the site, and vice versa.

    To enable compression for mobile users through WPtouch, there are a few options.

    1. You can use a caching plugin that is able to distinguish between desktop and mobile users. Some plugins that do this are WP Rocket, and WP Fastest Cache in their premium versions, though I’m not sure if they also offer compression. You can reach out to those plugins to confirm. Other caching plugins may also work, look for a feature like mobile detection.

    2. With WPtouch Pro, we offer an extension, Power Pack, which is able to do both caching, and combining and minification of JavaScript/CSS files, though it won’t compress (gzip) them.

    3. You may be able to use a plugin such as Autoptimize, which can combine/minify/compress files without caching.

    4. You may also be able to enable compression on your server. This will depend on your webhost, but Apache and NGINX can both be configured to compress JS/CSS files, independently of WordPress.

    Regards,
    Adam Di Pardo
    WPtouch Support Specialist

Viewing 1 replies (of 1 total)

The topic ‘WPTouch files are uncompressed?’ is closed to new replies.