- Edited
aaP_tony
This is done on purpose. Not sure what your website configuration is causing 404
The index.php rule is a special case in some WordPress websites, because in the URL structure of WordPress, the URLs of many pages end with index.php, such as http://example.com/page1/index.php
, http://example.com/page1/index.php
etc. The content of these pages may be dynamically generated, including dynamic data such as user login status and comments, so they cannot be cached.
In addition, index.php may also be an entry file in some plug-ins or themes, and the contents of these files may also be dynamically generated, so they cannot be cached.
Therefore, in order to avoid caching these dynamically generated pages or files, you need to add index.php to the rules for skipping caching.