'; $js_or_css = pathinfo( $original_request, PATHINFO_EXTENSION ); $fallback_path = $ao_cache_dir . $js_or_css . '/autoptimize_fallback.' . $js_or_css; if ( $original_request !== $fallback_target && file_exists( $fallback_path ) ) { // error_log( 'Autoptimize file ' . $original_request . ' not found, using fallback instead.' ); header( 'HTTP/1.1 301 Moved Permanently' ); header( 'Location: ' . $fallback_target ); } else { // error_log( 'Autoptimize file ' . $original_request . ' not found, sending 410 gone response.' ); header( 'HTTP/1.1 410 Gone' ); } exit();