Qiang Zhao
Qiang Zhao

Reputation: 11

How to disable Vary header in bitnami wordpress

Which version of the application are you using?: WordPress 4.8.2

Please choose how you got the application: Installer (Windows, Linux, macOS), cloud image (AWS, GCE, Azure, ...) or VM (VMDK, VBOX): google cloud

Have you installed any plugin or modified any configuration file?: wp super cache

Describe here your question/suggestion/issue (expected and actual results):

CDN can not hit my resource on edge server because of the vary header setting.

how to disable the vary:cookie?

enter image description here

Upvotes: 0

Views: 211

Answers (2)

Michiel d'Hont
Michiel d'Hont

Reputation: 336

You could add it in the following way:

<IfModule mod_headers.c>
 Header unset Vary
 Header append Vary: Accept-Encoding
</IfModule>

Upvotes: 0

Michiel d&#39;Hont
Michiel d&#39;Hont

Reputation: 336

You can unset the header in the /installdir/wordpress/conf/httpd-app.conf file by adding the following:

<IfModule mod_headers.c>
  Header unset Vary
</IfModule>

Hope it helps,

Michiel D'Hont

Upvotes: 4

Related Questions