Skip to content

Commit

Permalink
#280 optimizing code
Browse files Browse the repository at this point in the history
  • Loading branch information
akshaywali committed Dec 27, 2022
1 parent 097fb28 commit 8120ffc
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions public/sw.php
Original file line number Diff line number Diff line change
Expand Up @@ -461,15 +461,15 @@ function superpwa_get_offline_page() {
* @since 2.1.6
*/
function superpwa_wp_fastest_cache_sw_filename( $sw_filename ) {
return 'superpwa-sw' . superpwa_multisite_filename_postfix() . '.js?timestamp='.time().'&action=wpfastestcache.js';
return 'superpwa-sw' . superpwa_multisite_filename_postfix() . '.js?timestamp='.time();
}

/**
* Change superpwa_sw_filename When WP Fastest Cache is active.
* Change superpwa_sw_filename When Bypass cache option is active.
* @since 2.1.6
*/
function superpwa_wp_bypass_sw_url_cache_filename( $sw_filename ) {
return 'superpwa-sw' . superpwa_multisite_filename_postfix() . '.js?timestamp='.time().'&action=bypasscache.js';
return 'superpwa-sw' . superpwa_multisite_filename_postfix() . '.js?timestamp='.time();
}

function superpwa_third_party_plugins_sw_filename(){
Expand Down

0 comments on commit 8120ffc

Please sign in to comment.