Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: Varnish: Bugs

#1089: Error in wiki page VCLExampleNormalizeUserAgent

 

 

Varnish bugs RSS feed   Index | Next | Previous | View Threaded


varnish-bugs at varnish-cache

Feb 3, 2012, 6:34 AM

Post #1 of 2 (85 views)
Permalink
#1089: Error in wiki page VCLExampleNormalizeUserAgent

#1089: Error in wiki page VCLExampleNormalizeUserAgent
----------------------+-----------------------------------------------------
Reporter: semiosis | Type: defect
Status: new | Priority: normal
Milestone: | Component: website
Version: | Severity: normal
Keywords: |
----------------------+-----------------------------------------------------
This code in the wiki page [wiki:VCLExampleNormalizeUserAgent
VCLExampleNormalizeUserAgent] has a bug...

{{{
sub vcl_fetch {
...

# If you want to see it in the delivered object headers too
set obj.http.X-UA = req.http.X-UA; # set beresp.http.X-UA for 2.1+

# Vary by X-UA, so varnish will keep distinct object copies by X-UA
value
set obj.http.Vary = "X-UA"; # set beresp.http.X-UA for 2.1+

...
}
}}}

The commented code for 2.1+ is the same on both lines! The second line's
comment should set beresp.http.Vary, as in...

{{{

set obj.http.Vary = "X-UA"; # set beresp.http.Vary for 2.1+
}}}

Thank you for Varnish & keep up the great work :)

--
Ticket URL: <https://www.varnish-cache.org/trac/ticket/1089>
Varnish <https://varnish-cache.org/>
The Varnish HTTP Accelerator

_______________________________________________
varnish-bugs mailing list
varnish-bugs [at] varnish-cache
https://www.varnish-cache.org/lists/mailman/listinfo/varnish-bugs


varnish-bugs at varnish-cache

Feb 13, 2012, 3:21 AM

Post #2 of 2 (72 views)
Permalink
Re: #1089: Error in wiki page VCLExampleNormalizeUserAgent [In reply to]

#1089: Error in wiki page VCLExampleNormalizeUserAgent
-----------------------+----------------------------------------------------
Reporter: semiosis | Type: defect
Status: closed | Priority: normal
Milestone: | Component: website
Version: | Severity: normal
Resolution: fixed | Keywords:
-----------------------+----------------------------------------------------
Changes (by scoof):

* status: new => closed
* resolution: => fixed


--
Ticket URL: <https://www.varnish-cache.org/trac/ticket/1089#comment:1>
Varnish <https://varnish-cache.org/>
The Varnish HTTP Accelerator

_______________________________________________
varnish-bugs mailing list
varnish-bugs [at] varnish-cache
https://www.varnish-cache.org/lists/mailman/listinfo/varnish-bugs

Varnish bugs RSS feed   Index | Next | Previous | View Threaded
 
 


Interested in having your list archived? Contact Gossamer Threads
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.