Hello,
I am using WP-Rocket. I proceeded as follows:
In the “Never cache the following URLs (one per line)” section, add the URL paths of the password reset pages you want to exclude. For example, if the URL of your password reset page is https://skilldesk.fr/reset-password/, add /reset-password/ (without the domain name) to this section.
In the “Never cache pages with the following query terms” section (or “Never cache URL(s) with the following query strings” in English), add the query parameters used in the password reset URLs. For example, if the URL of your password reset page contains query parameters like act=reset_password, hash=xxxxxxx, et login=xxxxxx, add these parameters separately :
act
hash
login
To exclude password reset pages from WP Rocket and the query requests, you need to add a rule in the .htaccess file. Since the password reset URL contains the string reinitialisation-du-mot-de-passe, you can use it to identify these pages.
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteCond %{QUERY_STRING} ^act=reset_password
RewriteRule ^reinitialisation-du-mot-de-passe/ - [L]
...
I will try until I find it, but these two solutions do not work. Do you have any ideas?
Sincerely, Angelysou