Do not cache redirect pages
-
Wordpress have default redirect from URL without leading slash to URL containing leading slash.
First request returns correct 301 redirect but second request returns cached HTML page without 301 status code.
Static files (cached pages) served by Apache https://www.keycdn.com/support/wordpress-cache-enabler-plugin#advanced-configuration
$ curl -i https://www.example.com/test-page HTTP/2 301 x-redirect-by: WordPress location: https://www.example.com/test-page/ <!doctype html> <meta charset="utf-8"> <title>Document moved</title> <p>Document has <a href="https://www.example.com/test-page/">moved here</a>.</p> $ curl -i https://www.example.com/test-page HTTP/2 200 <!doctype html> <meta charset="utf-8"> <title>Document moved</title> <p>Document has <a href="https://www.example.com/test-page/">moved here</a>.</p> <!-- Cache Enabler by KeyCDN @ 14.04.2020 23:47:37 (html) -->The page I need help with: [log in to see the link]
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
The topic ‘Do not cache redirect pages’ is closed to new replies.