Title: Do not cache wp-login.php
Last modified: March 1, 2022

---

# Do not cache wp-login.php

 *  Resolved [mw247](https://wordpress.org/support/users/mw247/)
 * (@mw247)
 * [4 years, 3 months ago](https://wordpress.org/support/topic/do-not-cache-wp-login-php/)
 * Is there a way of excluding wp-login.php from being cached?
 * Reset password fails when wp-login.php is being cached.

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

 *  Plugin Author [Optimizing Matters](https://wordpress.org/support/users/optimizingmatters/)
 * (@optimizingmatters)
 * [4 years, 3 months ago](https://wordpress.org/support/topic/do-not-cache-wp-login-php/#post-15417350)
 * Autoptimize does not do page caching at all and does not optimize the JS/ CSS
   on wp-login.php mw247. So not sure what exactly is wrong, but it is very unlikely
   to be Autoptimize :-/
 * hope this helps,
    frank
 *  Plugin Author [Optimizing Matters](https://wordpress.org/support/users/optimizingmatters/)
 * (@optimizingmatters)
 * [4 years, 3 months ago](https://wordpress.org/support/topic/do-not-cache-wp-login-php/#post-15422376)
 * This was discussed via mail and turned out to be due to the login page being 
   on a different URL which when excluded from page caching (by hoster) worked OK.
   Closing as solved 🙂

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

The topic ‘Do not cache wp-login.php’ 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/)

## Tags

 * [login](https://wordpress.org/support/topic-tag/login/)
 * [password reset](https://wordpress.org/support/topic-tag/password-reset/)

 * 2 replies
 * 2 participants
 * Last reply from: [Optimizing Matters](https://wordpress.org/support/users/optimizingmatters/)
 * Last activity: [4 years, 3 months ago](https://wordpress.org/support/topic/do-not-cache-wp-login-php/#post-15422376)
 * Status: resolved