Skip to content
● Grav 2.2 is out: 2x faster cold starts and 96% less memory on big sites. Read the announcement →

If-None-Match seems not to work

Started by Bao Ho 7 years ago · 0 replies · 517 views
7 years ago

I have the following in system.yaml

YAML
pages:
  expires: 0
  last_modified: false
  cache_control: no-cache
  etag: true

In the response of a page, I see something likes

YAML
Cache-Control: no-cache
Content-Encoding: gzip
Date: Sat, 07 Sep 2019 06:21:17 GMT
ETag: "af10340f68238f2a23723131b1f49172"
Vary: Accept-Encoding

I don't make any change on the page, and revisit it, the browser sends the request with header

TXT
If-None-Match: "af10340f68238f2a23723131b1f49172"

But the server always return 200 response with the full page content. The same ETag is returned.

I expect a "304" response but it was not.

Did I miss any configuration?

Suggested topics

Topic Participants Replies Views Activity
Support · by webmasterodp, 7 days ago
4 145 6 days ago
Support · by nwhitfield, 1 week ago
2 126 1 week ago
Support · by stell, 3 weeks ago
5 364 2 weeks ago
Support · by gravinator, 1 month ago
5 556 2 weeks ago
Support · by Gravver, 3 weeks ago
6 344 3 weeks ago