Re: General use of rewrite / redirect
| From: | Larry Garfield | Date: | Wed, 19 Mar 2008 01:49:03 +0000 |
| Subject: | Re: General use of rewrite / redirect | ||
| References: | 1 2 3 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-271758@lists.php.net to get a copy of this message | ||
On Tuesday 18 March 2008, Jason Pruim wrote:
> I don't know much about the actual load stuff... but I do know unless
> you specifically set it, the CSS should be cached unless you refresh
> it and the date has changed on the file. I assume the same with the
> images as well.
True, but bear in mind that the browser has to make a HEAD request for every
such file in order to determine if it needs to download it again. That's a
non-small amount of HTTP traffic if you have a lot of images or CSS files.
In Drupal (there I go again), we implemented a CSS file aggregator that
merges all queued CSS files into one and caches it, then sends just the one
file. Just switching that aggregator on, I can easily cut page load time in
half.
--
Larry Garfield AIM: LOLG42
larry@garfieldtech.com ICQ: 6817012
"If nature has made any one thing less susceptible than all others of
exclusive property, it is the action of the thinking power called an idea,
which an individual may exclusively possess as long as he keeps it to
himself; but the moment it is divulged, it forces itself into the possession
of every one, and the receiver cannot dispossess himself of it." -- Thomas
Jefferson