Plugin Directory

Changeset 2903046


Ignore:
Timestamp:
04/24/2023 12:00:35 AM (3 years ago)
Author:
rickey29
Message:

2.25.0

Location:
hyper-pwa/trunk
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • hyper-pwa/trunk/cfg/cfg.php

    r2902824 r2903046  
    55}
    66
    7 define( 'HYPER_PWA_VERSION', '2.24.0' );
     7define( 'HYPER_PWA_VERSION', '2.25.0' );
    88
    99
  • hyper-pwa/trunk/hyper-pwa.php

    r2902824 r2903046  
    44Plugin URI:  https://github.com/rickey29/hyper-pwa
    55Description: Provide custom Manifest and Service Worker, convert WordPress into Progressive Web Apps (PWA).
    6 Version:     2.24.0
     6Version:     2.25.0
    77Author:      Rickey Gu
    88Author URI:  https://flexplat.com
  • hyper-pwa/trunk/pwa/register.php

    r2902062 r2903046  
    4747        $page .= "\n
    4848if ('serviceWorker' in navigator) {
    49   const wb = new Workbox('./" . HYPER_PWA_SERVICE_WORKER_JS . "?ver=" . HYPER_PWA_VERSION . "');";
     49  const wb = new Workbox('/" . HYPER_PWA_SERVICE_WORKER_JS . "?ver=" . HYPER_PWA_VERSION . "');";
    5050
    5151        $page .= "\n
  • hyper-pwa/trunk/pwa/service-worker.php

    r2902824 r2903046  
    3535        if ( $offline_fallback_page !== 'disable' )
    3636        {
    37             $page = "\n\n
     37            $page = "\n
    3838const staleWhileRevalidate = new StaleWhileRevalidate({
    3939  cacheName: CACHE,
     
    6464        else
    6565        {
    66             $page = "\n\n
     66            $page = "\n
    6767const staleWhileRevalidate = new StaleWhileRevalidate({
    6868  cacheName: CACHE,
     
    8989        if ( $offline_fallback_page !== 'disable' )
    9090        {
    91             $page = "\n\n
     91            $page = "\n
    9292const networkFirst = new NetworkFirst({
    9393  networkTimeoutSeconds: 3,
     
    119119        else
    120120        {
    121             $page = "\n\n
     121            $page = "\n
    122122const networkFirst = new NetworkFirst({
    123123  networkTimeoutSeconds: 3,
     
    289289
    290290        $page .= "\n\n
     291const CACHE = 'hyper-pwa';";
     292
     293        if ( $site_type === 'static' )
     294        {
     295            $page .= $this->stalewhilerevalidate( $offline_fallback_page );
     296        }
     297        else
     298        {
     299            $page .= $this->networkfirst( $offline_fallback_page );
     300        }
     301
     302        $page .= "\n\n
    291303const GOOGLE_FONTS_STYLESHEETS_CACHE = 'hyper-pwa-google-fonts-stylesheets';
    292304
     
    392404  })
    393405);
    394 
    395 const CACHE = 'hyper-pwa';
    396406
    397407registerRoute(
     
    427437);";
    428438
    429         if ( $site_type === 'static' )
    430         {
    431             $page .= $this->stalewhilerevalidate( $offline_fallback_page );
    432         }
    433         else
    434         {
    435             $page .= $this->networkfirst( $offline_fallback_page );
    436         }
    437 
    438439        if ( $default_handler !== 'disable' )
    439440        {
    440441            $page .= "\n\n
     442const DEFAULT_CACHE = 'hyper-pwa-default';
     443
    441444// Set a default stale-while-revalidate strategy to use when
    442445// there is no explicit matching route:
     
    445448// Register 'default'
    446449const defaultStrategy = new StaleWhileRevalidate({
    447   cacheName: CACHE,
     450  cacheName: DEFAULT_CACHE,
    448451  plugins: [
    449452    new ExpirationPlugin({
  • hyper-pwa/trunk/readme.txt

    r2902824 r2903046  
    66Tested up to: 6.2
    77Requires PHP: 7.2
    8 Stable tag: 2.24.0
     8Stable tag: 2.25.0
    99License: GPLv2 or later
    1010License URI: http://www.gnu.org/licenses/gpl-2.0.html
     
    109109
    110110== Changelog ==
     111= 2.25.0
     112(Sun., Apr. 23, 2023)
     113* Bug Fix: Move hyper-pwa-service-worker.js and hyper-pwa-manifest.json to Precache List continue.
     114
    111115= 2.24.0
    112116(Sat., Apr. 22, 2023)
Note: See TracChangeset for help on using the changeset viewer.