Tagged: disable cache, header script
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
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