If you insert any header for redirect on your apache webserver then it will appear vary header.
RewriteCond %{HTTP:X-Forwarded-SSL} ^on$ [NC]
RewriteRule ^/url.* https://%{HTTP_HOST}%{REQUEST_URI} [R=301,L]
eg .
This is ok if you don't have CDN ,since CDN don't like this header on vary, and you will have cache miss.
To over come this issue you need to make some changes on your Apache rewrite.
RewriteCond %{HTTP:X-Forwarded-SSL} ^on$ [NC,NV]
RewriteRule ^/url.* https://%{HTTP_HOST}%{REQUEST_URI} [R=301,L]
NV is for no vary.
RewriteRule ^/url.* https://%{HTTP_HOST}%{REQUEST_URI} [R=301,L]
NV is for no vary.
No comments:
Post a Comment