Caching doesn’t work | WordPress.org

[ad_1]

Error showing when we test the caching on home page
https://nimb.ws/5TKpiG

Hello @coderswift

The reason why the site’s home page is not being cached is due to the presence of a Set-Cookie header, more specifically:

set-cookie: xoo_brand=deleted; expires=Thu, 01-Jan-1970 00:00:01 GMT; Max-Age=0; path=/

The presence of it  indicates that the content is personalized in some way and specific to each user/visitor.  Because of this, caching systems, including our plugin, are not supposed to cache the page. This is done in order to ensure that personal information isn’t accidentally shared with other users.

I have checked a couple of random internal pages for the site – those do not have the cookie present and are being cached.

If you would like to have your home page cached as well, you will need to remove said cookie. The cookie is most likely set by an active plugin on the site or by the theme used. If you’re unsure of the exact way to disable it – you should discuss the case further with your site’s developer. 

Best Regards,
Gergana Petrova

 

This site will teach you how to build a WordPress website for beginners. We will cover everything from installing WordPress to adding pages, posts, and images to your site. You will learn how to customize your site with themes and plugins, as well as how to market your site online.

Buy WordPress Transfer