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

Mailing List Archive: Varnish: Misc

Changing the Varnish Date header to UTC

 

 

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


n.j.saunders at gmail

May 16, 2012, 7:58 AM

Post #1 of 3 (432 views)
Permalink
Changing the Varnish Date header to UTC

Hi all -

Hopefully a quick one - Is there any way to get varnish to provide the date
header in UTC instead of GMT?

neil [at] Neils-MacBook-Pr:~$ curl -v http://www.zeebox.com
<snip>
< HTTP/1.1 301 Moved Permanently
< Accept-Ranges: bytes
< Age: 117
< Content-Type: text/html
< Date: Wed, 16 May 2012 14:55:38 GMT <<<<<<<<<<<<<<<<
< Server: nginx/0.7.65
< Via: 1.1 varnish
< X-Varnish: 1342116745 1342115968
< X-Zeebox-Backend: live_ew1b_web4
< Content-Length: 185
< Connection: keep-alive
<snip>

Thanks!

- Neil


phk at phk

May 16, 2012, 11:04 AM

Post #2 of 3 (392 views)
Permalink
Re: Changing the Varnish Date header to UTC [In reply to]

In message <CAMjLkcqbckNGTd5-Pm3ZPWkhQtQp+PTREhybXjW6b4PX1L+PwA [at] mail>
, Neil Saunders writes:

>Hopefully a quick one - Is there any way to get varnish to provide the date
>header in UTC instead of GMT?

That's OS being retarded, Varnish sets its TZ variable to "UTC".


--
Poul-Henning Kamp | UNIX since Zilog Zeus 3.20
phk [at] FreeBSD | TCP/IP since RFC 956
FreeBSD committer | BSD since 4.3-tahoe
Never attribute to malice what can adequately be explained by incompetence.

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


tfheen at varnish-software

Jun 3, 2012, 11:50 PM

Post #3 of 3 (361 views)
Permalink
Re: Changing the Varnish Date header to UTC [In reply to]

]] Neil Saunders

> Hopefully a quick one - Is there any way to get varnish to provide the date
> header in UTC instead of GMT?

No, it's the required format according to RFC2616. See section 3.3.1:

HTTP-date = rfc1123-date | rfc850-date | asctime-date
rfc1123-date = wkday "," SP date1 SP time SP "GMT"
rfc850-date = weekday "," SP date2 SP time SP "GMT"

--
Tollef Fog Heen
Technical lead, Varnish Software
t: +47 21 98 92 64

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

Varnish misc 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.