Skip to content
Grav 2.0 is officially stable. Read the announcement →
Support

If-None-Match seems not to work

Started by Bao Ho 7 years ago · 0 replies · 455 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 Paul Hodges, 4 weeks ago
19 486 5 days ago
Support · by Lauw, 7 days ago
2 104 7 days ago
Support · by Anna, 3 weeks ago
4 426 1 week ago
Support · by gtx, 4 weeks ago
4 377 3 weeks ago
Support · by Anna, 1 month ago
9 484 4 weeks ago