Re: Using a single php entry file for a whole site. [message #182159 is a reply to message #181895] |
Sun, 14 July 2013 23:15 |
Christoph Michael Bec
Messages: 207 Registered: June 2013
Karma:
|
Senior Member |
|
|
The Natural Philosopher wrote:
> OK all fair and good, but how in fact does apache know that the data has
> not been modified since that particular client last accessed it?
The client may send an "If-Modified-Since" header, so Apache knows which
is the last version the client has cached. However, there are several
other headers related to cache-control.
> Its working like a dream for sure - 99% of all the hits are 304's - but
> how can I make sure it always does?
You can't. At least the content has to be delivered *once*. Then it's
up to the client to cache it and to send appropriate request headers.
Anyway, a 304 does mainly save the transmission of the response's
*payload* only.
--
Christoph M. Becker
|
|
|