Skip to content
● Meet Grav Guard: keep every Grav site you run secure and up to date, all from one place. Free for up to 3 sites. Read more →

If-None-Match seems not to work

Started by Bao Ho 7 years ago · 0 replies · 580 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 TomW, 2 weeks ago
8 227 9 hours ago
Support · by alex, 2 months ago
8 667 24 hours ago
Support · by Supple, 5 days ago
1 98 1 day ago
Support · by TomW, 1 week ago
3 159 3 days ago
Support · by TomW, 6 days ago
2 106 6 days ago