EE currently sends the following headers when serving CSS:
HTTP/1.0 200 OK
Date: Sun, 02 Sep 2007 16:06:31 GMT
Server: Apache/2.2.4 (Unix)
Cache-Control: no-store, no-cache, must-revalidate
Cache-Control: post-check=0, pre-check=0
Pragma: no-cache
Content-Type: text/css
This is incredibly inefficient. Static content like CSS and JS should only be sent to the client if they’ve been modified. Please offer an option to send proper HTTP headers for these types of content.
I’d argue that it should be on by default, as the benefit of sending a fresh copy every time is far outweighed by the performance hit incurred by doing so. EE CSS and JS files should behave exactly like any other CSS out there. That is, cached normally.
