Support » Plugin: Page Speed Optimization » how to enable pre-caching

  • Resolved kognifi01

    (@kognifi01)


    how i can enable pre-caching? because my website can’t work offline when data off.

    The page I need help with: [log in to see the link]

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Optimalisatie.nl

    (@optimalisatie)

    Hi kognifi01,

    Thank you for your question!

    There is an example on the PWA settings page. You will need to include a script that defines what resources should be preloaded for offline accessibility:

    Abtf.offline(['/shop/','/shop/product1.html','/wp-content/uploads/.../product-image.jpg'])
    .then(function(status) {
    	console.log('Resources available offline', status);
    });

    We are currently working on a new plugin that will be more advanced. The PWA optimization component will be improved greatly.

    thanks for your feedback. but where i should put this script?

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘how to enable pre-caching’ is closed to new replies.