Web Application Performance: Difference between revisions
Jump to navigation
Jump to search
Line 7: | Line 7: | ||
Most headers won't help on first visit. | Most headers won't help on first visit. | ||
Request headers: | |||
* If-Modified-Since: Date/time | |||
* If-None-Match: Hash (ETag) |
Revision as of 14:57, 11 July 2023
HTTP headers
- Cache-Control: max-age
- ETag: Hash of file, don't download if unchanged (but beware of how this is calculated, e.g. Apache may use inodes by default which differ on load-balanced servers)
- Expires: Re-download after this
- Last-Modified
Most headers won't help on first visit.
Request headers:
- If-Modified-Since: Date/time
- If-None-Match: Hash (ETag)