Skip to content
Grav 2.1 is out: every page speaks Markdown. Read the announcement →

If-None-Match seems not to work

Started by Bao Ho 7 years ago · 0 replies · 483 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 blu3prince, 4 days ago
1 71 5 hours ago
Support · by complanar, 7 days ago
6 157 2 days ago
Support · by Rick Beebe, 7 days ago
2 117 3 days ago
Support · by alex, 5 days ago
2 101 4 days ago
Support · by Marcel, 2 weeks ago
1 152 5 days ago