HTTP cache
Categories
Component ID
1403456
Component name
HTTP cache
Component type
module
Maintenance status
Development status
Component security advisory coverage
not-covered
Component created
Component changed
Component body
Proof-of-concept module providing HTTP caching for authenticated users.
How it works
By default any response - currently only pages rendered through drupal_render_page() - may be cached locally by the user agent, except if explicitly set not to (e.g. certain paths, or if the page contains dynamic content that changes every request). Along each cacheable response an ETag HTTP header is passed containing identifiers of all displayed data (entities, etc).
Subsequent requests will now pass a If-None-Match request-header field. During bootstrap all identifiers in the ETag will be checked for freshness. If all identifiers are fresh, a 304 Not Modified response will be returned.
