• Resolved Eliyahna

    (@eliyahna)


    I want to use

    Clear-Site-Data: "cache"

    header. I have never done that before. Can I do it with this plugin? If so, can you give instructions?

Viewing 1 replies (of 1 total)
  • Plugin Author Mircea Sandu

    (@gripgrip)

    Hi @eliyahna,

    You can send custom headers using PHP in WPCode. You will have to create a new snippet and set it to the PHP code type and use a code similar to this:

    header('Clear-Site-Date: "cache"');

    I recommend using an auto-insert location like “Frontend Only” or “Frontend Conditional Logic” and maybe adding some conditional logic rules to only load this header on some pages to avoid performance issues due to always clearing the cache.

Viewing 1 replies (of 1 total)
  • You must be logged in to reply to this topic.