Excerpt from Flight PHP micro framework website:
HTTP Caching
Flight provides built-in support for HTTP level caching.
If the caching condition is met, Flight will return an HTTP 304 Not
Modified response. The next time the client requests the same
resource, they will be prompted to use their locally cached version
I managed to install the framework and began to harness it.
Being a PHP n00b, any explanation on HTTP level caching is welcome. An expansion on the caching condition would be also great.
Thanx in advance.
“HTTP level caching” simply means “HTTP-level caching”, i.e. caching done through HTTP headers (e.g.
Cache-Control,Expires,If-Modified-Since). These headers can be set by either servers or clients.Clients can set a cache condition like
If-Modified-Sinceto get updated content only when their cached copy expires. The server seesIf-Modified-Sinceand compares the client’s date to the date on the resource; if the resource is newer, it is served up. Otherwise, the server returns a small304 Not Modifiedresponse to inform the client that nothing has changed since their last request.