Skip to content

Commit

Permalink
Remove the (extra) underscore from the fallback path to fix the 404 h…
Browse files Browse the repository at this point in the history
…andler logic, kudo's to Asif for discovering & reporting this bug!
  • Loading branch information
futtta committed Sep 15, 2022
1 parent 536be4d commit e64e678
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion config/autoptimize_404_handler.php
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@
$ao_cache_dir = $ao_root_cache_dir . $child_site_id[1] . '/';
}

$fallback_path = $ao_cache_dir . $js_or_css . '/<!--ao-cachefile-prefix-->_fallback.' . $js_or_css;
$fallback_path = $ao_cache_dir . $js_or_css . '/<!--ao-cachefile-prefix-->fallback.' . $js_or_css;

if ( $original_request !== $fallback_target && file_exists( $fallback_path ) ) {
// error_log( 'Autoptimize file ' . $original_request . ' not found, using fallback instead.' );
Expand Down

0 comments on commit e64e678

Please sign in to comment.