WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I want to have an add_header directive inside a location block of the nginx.conf (inside the document root) generated by W3 Total Cache like this

# BEGIN W3TC Page Cache cache
location ~ /wp-content/cache/page_enhanced.*html$ {
expires modified 3600s;
add_header Vary "Accept-Encoding, Cookie";
add_header MyHeader "Value";
location ~ /wp-content/cache/page_enhanced.*gzip$ {
gzip off;
types {}
default_type text/html;
expires modified 3600s;
add_header Vary "Accept-Encoding, Cookie";
add_header Content-Encoding gzip;
add_header MyHeader "Value";
# END W3TC Page Cache cache

Since W3 Total Cache overwrites this file I'd to know a method to keep it permanent.

share|improve this question

closed as off-topic by Mark Kaplun, Pieter Goosen, shea, ialocin, gmazzap Aug 22 '14 at 9:45

This question appears to be off-topic. The users who voted to close gave this specific reason:

If this question can be reworded to fit the rules in the help center, please edit the question.