[ Web Proxy ]
URL:
Viewing: https://developer.mozilla.org/ja/docs/Web/HTTP/Reference/Headers/Cache-Control [Back]  [Original]

Cache-Control - HTTP | MDN

MDN Web Docs

View in English Always switch to English

Cache-Control

Baseline

20157

HTTP Cache-Control CDN

,
CORS

http
Cache-Control: <>, <>, ...

  • Cache-control: max-age=180, public
  • (=) Cache-control: max-age=12

Cache-Control

max-age max-age
max-stale -
min-fresh -
- s-maxage
no-cache no-cache
no-store no-store
no-transform no-transform
only-if-cached -
- must-revalidate
- proxy-revalidate
- must-understand
- private
- public
- immutable
- stale-while-revalidate
stale-if-error stale-if-error

:

(HTTP)

Proxy, CDN 1

Age

max-age

max-age=N N

http
Cache-Control: max-age=604800

max-age 100 Age 100

max-age -1 3599.99 0 HTTP

http
Cache-Control: max-age=604800
Age: 100

s-maxage

s-maxage (max-age ) s-maxage max-age max-age

http
Cache-Control: s-maxage=604800

no-cache

no-cache

http
Cache-Control: no-cache

no-cache

no-cache no-store

must-revalidate

must-revalidate

must-revalidate max-age

http
Cache-Control: max-age=604800, must-revalidate

HTTP must-revalidate 504 (Gateway Timeout)

proxy-revalidate

proxy-revalidate must-revalidate

no-store

no-store

http
Cache-Control: no-store

private

private

http
Cache-Control: private

Cookie private

private

public

public Authorization public

http
Cache-Control: public

Basic Digest Authorization max-age

public

http
Cache-Control: public, max-age=604800

s-maxage must-revalidate

Authorization s-maxage must-revalidate public

must-understand

must-understand

must-understand no-store

http
Cache-Control: must-understand, no-store

must-understand no-store

must-understand

no-transform

(intermedialies)

no-transform

immutable

immutable

http
Cache-Control: public, max-age=604800, immutable

/ URL /URL cache-busting

html
<script src="https://example.com/react.0.0.0.js"></script>

immutable

cache-busting max-age immutable

stale-while-revalidate

stale-while-revalidate

http
Cache-Control: max-age=604800, stale-while-revalidate=86400

7 604800 7 86400

stale-if-error

stale-if-error 500502503504

http
Cache-Control: max-age=604800, stale-if-error=86400

7 604800 7 1 86400

stale-if-error

no-cache

no-cache

http
Cache-Control: no-cache

no-cache

no-cache

no-store

no-store

http
Cache-Control: no-store

max-age

max-age=N N N 0

http
Cache-Control: max-age=10800

Cache-Control: max-age=10800 3 max-age Age

http
Cache-Control: max-age=0

max-age=0 no-cache (HTTP/1.0 ) no-cache max-age=0 no-cache

max-age -1 3599.99 0

max-stale

max-stale=N N N

http
Cache-Control: max-stale=3600

1

max-stale

min-fresh

min-fresh N

http
Cache-Control: min-fresh=600

51 Cache-Control: max-age=3600

min-fresh

no-transform

no-transform

only-if-cached

504 Gateway Timeout

stale-if-error

stale-if-error

no-store

http
Cache-Control: no-store

no-cache

http
Cache-Control: no-cache

private, no-cache, max-age=0, must-revalidate no-store

http
# 
Cache-Control: private, no-cache, no-store, max-age=0, must-revalidate

# 
Cache-Control: no-store

html
<!-- index.html -->
<script src="/assets/react.min.js"></script>
<img src="/assets/hero.png" width="900" height="400" />

React hero.png max-age

URL

html
<!-- index.html -->
<script src="/assets/react.0.0.0min.js"></script>
<img src="/assets/hero.png?hash=deadbeef" width="900" height="400" />

max-age immutable

http
# /assets/*
Cache-Control: max-age=31536000, immutable

URL

no-cache HTML no-cache HTML

http
# /index.html
Cache-Control: no-cache

: index.html Basic Digest /assets /assets/ publics-maxage must-revalidate 1

Cache-Control Cache-Control

no-cache 304 Not Modified

http
Cache-Control: no-cache

HTTP/1.0 no-cache max-age=0 max-age=0 must-revalidate no-cache

http
Cache-Control: max-age=0, must-revalidate

no-cache

Clear-Site-Data: cache

HTTP Caching
# field.cache-control
HTTP Immutable Responses
# the-immutable-cache-control-extension


Web Proxy Viewer  |  New URL  |  Original Page