I am wanting to implement Super Cache on a site which is managed under version control and staging practices. I must demonstrate its functionality on our dev site prior to deploying to staging and production.
Our dev and staging environments are password protected via Windows Authentication. I discovered today that, when running Super Cache on those environments, I get the famous error "The pages do not match! Timestamps differ or were not found!" and the resultant cache pages describe an authentication problem resulting in a 401.2 error.
What is happening is that Super Cache doesn't generate appropriate authentication headers when it requests the PHP pages for caching, so our server rejects the requests and Super Cache ends up creating a cached version of the error responses. Effectively, Super Cache doesn't authenticate like a browser, so it doesn't get real pages to cache.
Is there any way to work around this? When we turn off password protection to the site, Super Cache works, so it's definitely just this authentication issue. But we need to keep the password protection on, and yet we must demo the Super Cache functionality to our management in dev and staging.
Can anyone help with this quandary?