Title: Fallback not working
Last modified: September 15, 2022

---

# Fallback not working

 *  Resolved [Asif](https://wordpress.org/support/users/asifanwar451/)
 * (@asifanwar451)
 * [3 years, 8 months ago](https://wordpress.org/support/topic/fallback-not-working/)
 * Hi,
    We noticed that we are getting the 410 response code instead of getting 
   the fallback script. We looked into the autoptimize_404_handler.php in the \wp-
   content directory and found that the resource name has a double underscore, have
   a look at the below code,
 * `$fallback_path = $ao_cache_dir . $js_or_css . '/autoptimize__fallback.' . $js_or_css;`
 * It works fine after removing redundant underscore. Is it a bug or something wrong
   with our configuration?
 * We are on version 3.1.1.1, using WordPress 6.0.2 in multisite mode.
 * Cheers
    Asif

Viewing 5 replies - 1 through 5 (of 5 total)

 *  Plugin Author [Optimizing Matters](https://wordpress.org/support/users/optimizingmatters/)
 * (@optimizingmatters)
 * [3 years, 8 months ago](https://wordpress.org/support/topic/fallback-not-working/#post-16012511)
 * that seems to be a bug indeed, can you [download the beta zip-file](https://github.com/futtta/autoptimize/archive/refs/heads/beta.zip)
   and install it instead of 3.1.1.1, remove the autoptimize_404_handler.php file
   so it can be regenerated and then check if the double underscore is not in the
   newly generated 404 handler?
 * thanks!
    frank
 *  Thread Starter [Asif](https://wordpress.org/support/users/asifanwar451/)
 * (@asifanwar451)
 * [3 years, 8 months ago](https://wordpress.org/support/topic/fallback-not-working/#post-16016727)
 * Hey [@optimizingmatters](https://wordpress.org/support/users/optimizingmatters/)
   
   Yes, this version works fine. Thanks. Any idea when will the fix be officially
   released?
 * Cheers
    Asif
 *  Plugin Author [Optimizing Matters](https://wordpress.org/support/users/optimizingmatters/)
 * (@optimizingmatters)
 * [3 years, 8 months ago](https://wordpress.org/support/topic/fallback-not-working/#post-16017106)
 * I’m on a short vacation now, but likely next week Asif.
 *  Plugin Author [Optimizing Matters](https://wordpress.org/support/users/optimizingmatters/)
 * (@optimizingmatters)
 * [3 years, 8 months ago](https://wordpress.org/support/topic/fallback-not-working/#post-16023426)
 * Releasing 3.1.2 while I’m typing this Asif, again thank you for your assistance
   to identify and fix this bug! 🙂
 * frank
 *  Thread Starter [Asif](https://wordpress.org/support/users/asifanwar451/)
 * (@asifanwar451)
 * [3 years, 8 months ago](https://wordpress.org/support/topic/fallback-not-working/#post-16026211)
 * Hey [@optimizingmatters](https://wordpress.org/support/users/optimizingmatters/)
   
   Cool. Thanks for the update. And, appreciate the quick response here.
 * Cheers
    Asif

Viewing 5 replies - 1 through 5 (of 5 total)

The topic ‘Fallback not working’ is closed to new replies.

 * ![](https://ps.w.org/autoptimize/assets/icon-256X256.png?rev=2211608)
 * [Autoptimize](https://wordpress.org/plugins/autoptimize/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/autoptimize/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/autoptimize/)
 * [Active Topics](https://wordpress.org/support/plugin/autoptimize/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/autoptimize/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/autoptimize/reviews/)

 * 5 replies
 * 2 participants
 * Last reply from: [Asif](https://wordpress.org/support/users/asifanwar451/)
 * Last activity: [3 years, 8 months ago](https://wordpress.org/support/topic/fallback-not-working/#post-16026211)
 * Status: resolved