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

Mailing List Archive: Cherokee: dev

Cache-Control and redundant headers

 

 

Cherokee dev RSS feed   Index | Next | Previous | View Threaded


aperez at skarcha

Oct 3, 2009, 3:51 PM

Post #1 of 4 (108 views)
Permalink
Cache-Control and redundant headers

Hello!

I've just been playing with Google Page Speed [1], and reading the
documentation I've found this:

"It is important to specify one of Expires or Cache-Control max-age,
and one of Last-Modified or ETag, for all cacheable resources. It is
redundant to specify both Expires and Cache-Control: max-age, or to
specify both Last-Modified and ETag. " [2]

Then, testing with Cherokee, I realize that it's sending redundant headers:

%<------------%<------------%<------------%<------------%<------------
HTTP/1.1 200 OK
Connection: Keep-Alive
Keep-Alive: timeout=15
Date: Sat, 03 Oct 2009 22:48:57 GMT
Server: Cherokee/0.99
Expires: Sat, 26 Dec 2009 22:48:57 GMT
Cache-Control: max-age=7257600
ETag: 4a91cf50=57e
Last-Modified: Sun, 23 Aug 2009 23:22:56 GMT
Content-Type: image/x-icon
Content-Length: 1406
%<------------%<------------%<------------%<------------%<------------

One more thing... Reading this section [3], you can see that
"Cache-Control: public" headers could be interesting.

[1] http://code.google.com/speed/page-speed/index.html
[2] http://code.google.com/intl/en/speed/page-speed/docs/caching.html#LeverageBrowserCaching
[3] http://code.google.com/intl/en/speed/page-speed/docs/caching.html#LeverageProxyCaching

--
Saludos:
Antonio Pérez
_______________________________________________
Cherokee-dev mailing list
Cherokee-dev[at]lists.octality.com
http://lists.octality.com/listinfo/cherokee-dev


stefan at konink

Oct 3, 2009, 3:59 PM

Post #2 of 4 (104 views)
Permalink
Re: Cache-Control and redundant headers [In reply to]

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA512

Antonio Pérez schreef:
> Then, testing with Cherokee, I realize that it's sending redundant headers:

So what does make you think that any client supports every header?


Stefan
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.11 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iEYEAREKAAYFAkrH11AACgkQYH1+F2Rqwn3mMwCdH9hvFnEDRoPtOG/SW32Y1Uf+
m50Anj6dEW42gWW3b/bIv+zLEBBHF1GZ
=Rnmh
-----END PGP SIGNATURE-----
_______________________________________________
Cherokee-dev mailing list
Cherokee-dev[at]lists.octality.com
http://lists.octality.com/listinfo/cherokee-dev


aperez at skarcha

Oct 3, 2009, 4:09 PM

Post #3 of 4 (104 views)
Permalink
Re: Cache-Control and redundant headers [In reply to]

2009/10/4 Stefan de Konink <stefan[at]konink.de>:

> Antonio Pérez schreef:
>> Then, testing with Cherokee, I realize that it's sending redundant headers:
>
> So what does make you think that any client supports every header?

Well, I don't know actually... Because of that I sent the mail... ;)

Should we allow the user to select the method/header he wants to use?

--
Saludos:
Antonio Pérez
_______________________________________________
Cherokee-dev mailing list
Cherokee-dev[at]lists.octality.com
http://lists.octality.com/listinfo/cherokee-dev


stefan at konink

Oct 3, 2009, 4:54 PM

Post #4 of 4 (104 views)
Permalink
Re: Cache-Control and redundant headers [In reply to]

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA512

Antonio Pérez schreef:
> 2009/10/4 Stefan de Konink <stefan[at]konink.de>:
>
>> Antonio Pérez schreef:
>>> Then, testing with Cherokee, I realize that it's sending redundant headers:
>> So what does make you think that any client supports every header?
>
> Well, I don't know actually... Because of that I sent the mail... ;)
>
> Should we allow the user to select the method/header he wants to use?

In that case we should also allow the user to select what envirionment
variables are passed through scripts and some other obscure things.

I kind of think we should overoptimise our headers because some new
browsers can do it with only one line.


Stefan

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.11 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iEYEAREKAAYFAkrH5DAACgkQYH1+F2Rqwn3xwQCeNci8ab39BjtKIGJwEsjmdWPO
WMwAn0Ds8RMlBsi1vx2tST9KsH83X+Sr
=12PD
-----END PGP SIGNATURE-----
_______________________________________________
Cherokee-dev mailing list
Cherokee-dev[at]lists.octality.com
http://lists.octality.com/listinfo/cherokee-dev

Cherokee dev RSS feed   Index | Next | Previous | View Threaded
 
 


Interested in having your list archived? Contact lists@gossamer-threads.com
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.