[Web] HTTP status code 304 Not Modified
HTTP 304 “Not Modified” Status
“You can use the cached version you already have.”
How It Works
-
Client Request
The browser typically includes anIf-Modified-SinceorIf-None-Matchheader indicating the date or an ETag of the last known version. -
Server Check
-
The server compares the request header value with its current resource.
-
If unchanged, it returns a
304 Not Modifiedstatus, without the full resource body.
-
-
Client Uses Cache
-
On receiving a 304, the browser reuses its cached copy.
-
No download of the resource is needed, saving bandwidth and speeding up response time.
Why It’s Helpful
-
Performance: Minimizes data transfer, reduces load times.
-
Bandwidth Savings: No need to resend a file that hasn’t changed.
-
Better User Experience: Faster page loading when assets are already cached.
Comments
Post a Comment