do you want a feature which exclude cache by user-agent?
Yes. But I am not sure what the ‘exclude’ means.
When loading a page, wp-fastest-cache will create a cache so that next time wp-fastest-cache can use the cache directly.
I want to decide the timing that wp-fastest-cache creates the cache and uses the cache by user-agent.
Because I found that if Facebook load my page and wp-fastest-cache creates a cache at this time, the cache will have some problems caused by wp-syntax. The pre area will show a hash value, not my original program code. So, I need to filter Facebook: If there is no cache page, wp-fastest-cache will not create cache page. But if there is a cache page, wp-fastest-cache can use it.
can you tell me the facebook user-agent please?
I’m not sure whether the user-agent of facebook is fixed. But I think it must contain a ‘facebook’ string.
For example,
facebookexternalhit/1.1 (+http://www.facebook.com/externalhit_uatext.php)
[HTTP_USER_AGENT] => facebookexternalhit/1.1 (+http://www.facebook.com/externalhit_uatext.php)
yes, you are right. I have already decided to exclude it but I forgot 🙂 now I exclude and let you know.
I implemented it. If you delete and download the WPFC again, you can get the latest version of WPFC. Please let me know when you complete it.