Correct, I got the same response from SG Support last March:
The cause of the issue is that after authenticating on ABC.com/DEF, the website loads the page with the exact same URL and no ‘no-cache’ headers are passed. Thus, the page with the password prompt is simply served again, from the cache.
In order to resolve the issue, we’ve excluded the URL from being cached by using the ‘Exclude URLs from Caching’ functionality of the SiteGround Optimizer plugin. You may need to flush your browser’s cache before testing the page on your end.
Generally, pages that should not be cached are serving a ‘no-cache’ header, which our plugin honors and does not cache the page. Another part of the issue is that both the password-protection page and the content page it shows, are using the exact same URL, which is generally not a good practice. If you add such a header to the password-protected page, you can then enable the file-based caching for it, however, it will still not be cached due to the ‘no-cache’ header.
Feel free to test out different password-protection plugins and features in order to find the one that best suits your needs.
-
This reply was modified 2 years, 9 months ago by
pinoooo.