Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #1356410

    Hi
    My site is hosted on siteground and I noticed that when I used their SG Optimizer plugin and ran a test on site pages I got an error message saying that pages were not cached so I contacted Siteground support and they replied ..

    “By default, the Dynamic Cache mechanism will not cache a page if the same sets a cookie or opens a session. The reason is that these could contain sensitive data – caching such pages would represent a major security risk.
    The cookie appears to be set by the Enfold theme that your website is currently using. I temporarily switched the theme to a default one and the website was properly cached:”

    #1356574

    Hey briandeeney,

    Thank you for the inquiry.

    Based on the report above, the cookie is generated because of a PHP session. Are you using a Portfolio or Masonry element in the page?

    set-cookie: PHPSESSID=1fe40ca1c6cac0e5a81c05d365b85b9a; path=/
    

    You can disable the session cookie by adding this code in the functions.php file.

    add_theme_support( 'avia_no_session_support' );
    

    Best regards,
    Ismael

Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.