I have a specific user-agent that crawls my home page to ensure certain PHP code on there is active and working. The problem is, it can’t detect it when the home page is cached. Since I’d like to keep my home page cached all the time, I want ONLY this user-agent to be served the uncached version of my front page. I thought I could do this in the settings but Super-Cache only has the ability to prevent a user-agent from triggering a wp-cache, while any existing super-cache will still be served to it.
Is there a way to set this up? I think there was a rewrite you could do in htaccess that could accomplish this, but the only snippet I found looked very convoluted to me and was tailored for mobile browsers.
Any advice appreciated!
- The topic ‘Redirect a user-agent to an uncached home page?’ is closed to new replies.