Title: Yohan Totting's Replies | WordPress.org

---

# Yohan Totting

  [  ](https://wordpress.org/support/users/tyohan/)

 *   [Profile](https://wordpress.org/support/users/tyohan/)
 *   [Topics Started](https://wordpress.org/support/users/tyohan/topics/)
 *   [Replies Created](https://wordpress.org/support/users/tyohan/replies/)
 *   [Reviews Written](https://wordpress.org/support/users/tyohan/reviews/)
 *   [Topics Replied To](https://wordpress.org/support/users/tyohan/replied-to/)
 *   [Engagements](https://wordpress.org/support/users/tyohan/engagements/)
 *   [Favorites](https://wordpress.org/support/users/tyohan/favorites/)

 Search replies:

## Forum Replies Created

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

 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Minimum Configuration WordPress PWA] Media issue query checking request](https://wordpress.org/support/topic/media-issue-query-checking-request/)
 *  Plugin Author [Yohan Totting](https://wordpress.org/support/users/tyohan/)
 * (@tyohan)
 * [7 years, 7 months ago](https://wordpress.org/support/topic/media-issue-query-checking-request/#post-11143552)
 * We haven’t not test the plugin in multi sites setup. But in theory as long the
   sites has their own URL either in sub domain or sub directory it shouldn’t a 
   problem.
 * Will be great if you can test it and provide any info if there is a problem with
   the site. The best way to check it is see if there is an error on WordPress or
   browser console when the plug-in is active. Will happy to help from there.
    -  This reply was modified 7 years, 7 months ago by [Yohan Totting](https://wordpress.org/support/users/tyohan/).
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Minimum Configuration WordPress PWA] Media issue query checking request](https://wordpress.org/support/topic/media-issue-query-checking-request/)
 *  Plugin Author [Yohan Totting](https://wordpress.org/support/users/tyohan/)
 * (@tyohan)
 * [7 years, 7 months ago](https://wordpress.org/support/topic/media-issue-query-checking-request/#post-11142838)
 * The issue seems only occur if the video is cached with service workers. This 
   plugin only cache images and some static assets like JavaScripts, SVG, and fonts
   but not the video. So it should be okay. If you interested, this is [our implementation for service worker](https://github.com/wp-id/mcw-pwa/blob/develop/scripts/sw.js)
   with [WorkBox library](https://developers.google.com/web/tools/workbox/).
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Minimum Configuration WordPress PWA] Plugin could not be activated because it triggered a fatal error.](https://wordpress.org/support/topic/plugin-could-not-be-activated-because-it-triggered-a-fatal-error-527/)
 *  Plugin Author [Yohan Totting](https://wordpress.org/support/users/tyohan/)
 * (@tyohan)
 * [8 years, 2 months ago](https://wordpress.org/support/topic/plugin-could-not-be-activated-because-it-triggered-a-fatal-error-527/#post-10503665)
 * An update should be fix this issue. Please update the plugin to the latest one.
   Thanks.
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Minimum Configuration WordPress PWA] Plugin could not be activated because it triggered a fatal error.](https://wordpress.org/support/topic/plugin-could-not-be-activated-because-it-triggered-a-fatal-error-527/)
 *  Plugin Author [Yohan Totting](https://wordpress.org/support/users/tyohan/)
 * (@tyohan)
 * [8 years, 2 months ago](https://wordpress.org/support/topic/plugin-could-not-be-activated-because-it-triggered-a-fatal-error-527/#post-10503550)
 * Noted on this. We’re checking it out.
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Minimum Configuration WordPress PWA] debug please](https://wordpress.org/support/topic/debug-please-3/)
 *  Plugin Author [Yohan Totting](https://wordpress.org/support/users/tyohan/)
 * (@tyohan)
 * [8 years, 5 months ago](https://wordpress.org/support/topic/debug-please-3/#post-10136722)
 * You can turn off async defer feature on MCW PWA plugin because Autoptimize has
   a same feature. But the others still works.
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Minimum Configuration WordPress PWA] debug please](https://wordpress.org/support/topic/debug-please-3/)
 *  Plugin Author [Yohan Totting](https://wordpress.org/support/users/tyohan/)
 * (@tyohan)
 * [8 years, 5 months ago](https://wordpress.org/support/topic/debug-please-3/#post-10135147)
 * 1. Redis works on server cache, so you can’t use Redis because service worker
   works on browser level. The service worker will serve your static assets like
   fonts, JS, and CSS files when it’s exist in browser caches. So Redis can’t use
   here.
 * 2.Please remove the plugin and install it again, because I don’t change the version
   number. I tried to install the plugin directly on my WordPress and it’s work 
   fine without AMP. AMP is optional, but will enhanced some performance by precache
   the page if AMP page loaded.
 * 3. Your WordPress specs is fine. I haven’t try with multisite, but in theory 
   it should work with that mode too.
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Minimum Configuration WordPress PWA] debug please](https://wordpress.org/support/topic/debug-please-3/)
 *  Plugin Author [Yohan Totting](https://wordpress.org/support/users/tyohan/)
 * (@tyohan)
 * [8 years, 5 months ago](https://wordpress.org/support/topic/debug-please-3/#post-10135011)
 * Issue fixed, thanks for reporting and please try again.
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Minimum Configuration WordPress PWA] debug please](https://wordpress.org/support/topic/debug-please-3/)
 *  Plugin Author [Yohan Totting](https://wordpress.org/support/users/tyohan/)
 * (@tyohan)
 * [8 years, 5 months ago](https://wordpress.org/support/topic/debug-please-3/#post-10126240)
 * Sorry this because my Git and WordPress SVN still not sync I’m currently working
   on synchronizing the repo between my Git repo and my SVN. And will push the update
   this week. Sorry for that.
 * The AMP plugin must be activated if you want to enable service worker install
   when user open your AMP page. But if you’re not install it then it still works
   fine without AMP plugin.
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[AMP] Use install service worker through action hook](https://wordpress.org/support/topic/use-install-service-worker-through-action-hook/)
 *  Thread Starter [Yohan Totting](https://wordpress.org/support/users/tyohan/)
 * (@tyohan)
 * [8 years, 5 months ago](https://wordpress.org/support/topic/use-install-service-worker-through-action-hook/#post-10126236)
 * This is solved. Thanks
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[AMP] Use install service worker through action hook](https://wordpress.org/support/topic/use-install-service-worker-through-action-hook/)
 *  Thread Starter [Yohan Totting](https://wordpress.org/support/users/tyohan/)
 * (@tyohan)
 * [8 years, 9 months ago](https://wordpress.org/support/topic/use-install-service-worker-through-action-hook/#post-9791238)
 * It’s like this. I have a class that call from main file of my plugin. Inside 
   class contructor function I called through add_action.
 *     ```
       protected function __construct() {
               add_action('wp_print_footer_scripts', array($this,'registerSW'),1000);
               add_action( 'template_redirect', array( $this, 'renderSW' ), 2 );
               add_filter( 'query_vars', array( $this, 'registerQueryVar' ) );
               add_action( 'init', array( $this, 'registerRewriteRule' ) );
   
   
               $this->registerAMPServiceworker();
   
           }
   
       public function registerAMPServiceworker(){
               // AMP support
       		add_action( 'amp_post_template_head', array( $this, 'renderAMPSWScript' ) );
       		add_action( 'amp_post_template_footer', array( $this, 'renderAMPSWElement' ) );
           }
   
           public function renderAMPSWScript(){
               echo '<script async custom-element="amp-install-serviceworker" src="https://cdn.ampproject.org/v0/amp-install-serviceworker-0.1.js"></script>';
   
           }
   
           public function renderAMPSWElement(){
               echo '<amp-install-serviceworker src="'.$this->getSWUrl().'" layout="nodisplay"></amp-install-serviceworker>';
           }
       ```
   
    -  This reply was modified 8 years, 9 months ago by [Yohan Totting](https://wordpress.org/support/users/tyohan/).

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