Re: caching of static images

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Dec 14, 2007 2:38 PM, monarchs <ajayup@xxxxxxxxx> wrote:
>
> A question about the caching of static images, if the response header
> contains both Expires and Etag, will the client browser make call to server
> to validate Etag is fresh. I want to avoid the 304 requests as I know the
> files will never change, and want to know if setting both headers causes any
> issues.

This is up to the browser. I believe that in their default config,
most browsers will do an if-modified-since request once per session
but use the cached copy otherwise if the Cache-control max-age is set
correctly. Expires is not used by HTTP/1.1 browsers and I don't think
any of them care about etags if Last-Modified is present.

Joshua.

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@xxxxxxxxxxxxxxxx
   "   from the digest: users-digest-unsubscribe@xxxxxxxxxxxxxxxx
For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx


[Index of Archives]     [Open SSH Users]     [Linux ACPI]     [Linux Kernel]     [Linux Laptop]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Squid]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]

  Powered by Linux