Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #1481162

    I need to disable the varnish cache on my site to enable wp rocket options.
    The support guy on my hosting service said:
    “You can do this by adding a .htaccess file with the following code to the directory that you are editing.
    Header add "Cache-Control" "no-cache"

    Can you help me understand how to do this? Do I need to add that to my functions.php?
    I am using a child theme.
    thanks
    nancy

    #1481182

    Hey Munford,

    That file should go in the root of your WordPress installation. If you search for .htaccess then you will find a lot of information.

    Best regards,
    Rikard

    #1481223
    This reply has been marked as private.
Viewing 3 posts - 1 through 3 (of 3 total)
  • The topic ‘adding code to header / disable varnish cache’ is closed to new replies.