Project

General

Profile

Lighttpd as static webserver rocks, but, how to disable cookie?

Added by ittec over 13 years ago

Hi folks

It is well known that lighttpd as static web servers has a brutal performance over others webservers. The only complaint I have is the cookies. I have searched over this website and google about how to disable cookies in lighttpd without success.

I have:

  • CentOS 5.5
  • lighttpd/1.4.28 (ssl) , installed by RPMFORGE repository
  • server.modules = (
    "mod_expire",
    "mod_compress",
    "mod_access",
    )
  • Checking performance with Firefox & Yslow or Page Speed

I don't know if there is something in configuration to change and avoid cookie send. Anyone has any idea?

Thanks


Replies (6)

RE: Lighttpd as static webserver rocks, but, how to disable cookie? - Added by stbuehler over 13 years ago

lighttpd doesn't send cookies for static files.

RE: Lighttpd as static webserver rocks, but, how to disable cookie? - Added by MetaYii over 13 years ago

Cookies are sent by applications or interpreters, not by a HTTPd serving static files. If you are using PHP, disable automatic session cookies. Search http://php.net for more info. If you're using another script engine or software, check its docs.

RE: Lighttpd as static webserver rocks, but, how to disable cookie? - Added by ittec over 13 years ago

Hi again

it is very strange. Anyway, I have done a test with a Lighttpd that servers only a .JPG file. If I run a Yslow performance test, shows me a 99% of performance.

However, with PageSpeed it's everything OK less this:

"Serve the following static resources from a domain that doesn't set cookies: "

Im running a lighttpd server in a CentOS box without PHP installed:

-bash-3.2# php -v
-bash: php: command not found

So the problem, I think, is not PHP.

any ideas?

Thanks!

RE: Lighttpd as static webserver rocks, but, how to disable cookie? - Added by ittec over 13 years ago

HTTP/1.1 200 OK
Expires: Wed, 09 Feb 2011 16:35:26 GMT
Cache-Control: max-age=2592000
Content-Type: image/jpeg
Accept-Ranges: bytes
ETag: "2896445647"
Last-Modified: Wed, 10 Mar 2010 12:33:54 GMT
Content-Length: 15300
Date: Mon, 10 Jan 2011 16:35:26 GMT
Server: lighttpd/1.4.28

I have not knowledge to answer myself, what do you think? Is any cookie here?

thanks!

RE: Lighttpd as static webserver rocks, but, how to disable cookie? - Added by nitrox over 13 years ago

Just check with yslow and firebug, it tells ya all you need to know. And this isn´t a lighty question, it depends on your application and how you configured it.

    (1-6/6)