Score:0

Server doesn't respond to If-Modified-Since

mz flag

I get the following error on a Drupal & site running on PHP-FPM/NGINX set up.

Server returned the last modification time, but did not respond to If-Modified-Since.

So basically Nginx is responding with 200, when it should be responding with 304.

Output from the curl -

curl -I -H "If-Modified-Since: Mon, 06 Feb 2023 06:31:44 GMT" -X GET

https://www.example.com HTTP/2 200 server: nginx date: Mon, 06 Feb 2023 07:18:52 GMT content-type: text/html; charset=utf-8 vary: Accept-Encoding etag: "16756xx650xx38-0" content-language: en x-frame-options: SAMEORIGIN x-content-type-options: nosniff link: https://www.example.com.au; rel="canonical" cache-control: public, max-age=0 last-modified: Mon, 06 Feb 2023 06:30:38 GMT expires: Sun, 19 Nov 1978 05:00:00 GMT vary: Cookie vary: Accept-Encoding strict-transport-security: max-age=15768000

I am running following Nginx config: https://github.com/perusio/drupal-with-nginx/blob/D7/apps/drupal/drupal.conf

I can't get a 304 even on static resources being served directly by Nginx.

I sit in a Tesla and translated this thread with Ai:

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.