Vary Header
6 posts
• Page 1 of 1
Vary Header
I am using the most recent version of Helicon Ape.
I have discovered that, when REWRITE is turned on - some responses return a header of:
Vary: Original-URL
This interferes w/ client side caching in IE.
If I turn OFF rewrite - the header no longer appears.
I can't find anything about this in Ape documentation - can you clarify how I can stop the Vary header from being set?
I have discovered that, when REWRITE is turned on - some responses return a header of:
Vary: Original-URL
This interferes w/ client side caching in IE.
If I turn OFF rewrite - the header no longer appears.
I can't find anything about this in Ape documentation - can you clarify how I can stop the Vary header from being set?
Re: Vary Header
Just to be clear - if .htaccess is:
RewriteEngine on
RewriteRule ^(.*/)*\.private/ http://www.xyz.org/ [NC,R]
I see the VARY header.
If I change it to:
#RewriteEngine on
RewriteRule ^(.*/)*\.private/ http://www.xyz.org/ [NC,R]
There is no header.
The website itself is a .NET 4.0 application.
EDIT: It seems I was mistaken. The RewriteRule above doesn't cause an issue. It functions fine. The following rule (or one like it - w/ a RewriteCond) appears to cause the "Vary" header problem:
RewriteCond %{HTTP:Host} ^proxy\.xyz\.org$
RewriteRule ^([^/]*)/?$ http://www.xyz.org/ [NC,L,NS,R]
It causes the issue even if the condition is not met (and rule not applied.)
RewriteEngine on
RewriteRule ^(.*/)*\.private/ http://www.xyz.org/ [NC,R]
I see the VARY header.
If I change it to:
#RewriteEngine on
RewriteRule ^(.*/)*\.private/ http://www.xyz.org/ [NC,R]
There is no header.
The website itself is a .NET 4.0 application.
EDIT: It seems I was mistaken. The RewriteRule above doesn't cause an issue. It functions fine. The following rule (or one like it - w/ a RewriteCond) appears to cause the "Vary" header problem:
RewriteCond %{HTTP:Host} ^proxy\.xyz\.org$
RewriteRule ^([^/]*)/?$ http://www.xyz.org/ [NC,L,NS,R]
It causes the issue even if the condition is not met (and rule not applied.)
Last edited by billo355 on 12 Apr 2012, 18:14, edited 1 time in total.
Re: Vary Header
Also - I attempted to use Ape to alter the headers - but it doesn't work.
w/ Rewrite on I tried:
Header unset Vary
didn't work (Original-URL) remained. I also tried to "set" or even "append" the header. No luck.
If I turned Rewrite off - I was able to set the Vary header.
w/ Rewrite on I tried:
Header unset Vary
didn't work (Original-URL) remained. I also tried to "set" or even "append" the header. No luck.
If I turned Rewrite off - I was able to set the Vary header.
Re: Vary Header
Hello,
Thanks for reporting the issue. It might be a bug. Our developers will check it more thoroughly and fix it for the next build.
I'll inform you as soon as we have news for you.
Thanks for reporting the issue. It might be a bug. Our developers will check it more thoroughly and fix it for the next build.
I'll inform you as soon as we have news for you.
Re: Vary Header
Hello,
Please register in our helpdesk system (http://support.helicontech.com/) and create a ticket with reference to this forum post.
We'll send you a new build to check if it will help with your issue.
Please register in our helpdesk system (http://support.helicontech.com/) and create a ticket with reference to this forum post.
We'll send you a new build to check if it will help with your issue.
- dssmith522b
- Posts: 1
- Joined: 09 Jan 2013, 11:43
Re: Vary Header
I am having the same problem - cannot seem to add/append/merge a header
6 posts
• Page 1 of 1
Who is online
Users browsing this forum: No registered users and 5 guests