Nginx cache-control headers issue

Francis Daly francis at daoine.org
Sun Jul 21 12:26:34 UTC 2019


On Sat, Jul 20, 2019 at 10:10:39AM +0000, Andrew Andonopoulos wrote:

Hi there,

> Also, I want to ask you, I saw that the last-modified header with token is always: Last-Modified:  Sun, 19 Nov 2000 08:52:00 GMT, but there isn't line in the config forcing this date/time.
> Can you suggest which code forcing this modified time?

You appear to be using the third-party module documented at
https://github.com/kaltura/nginx-secure-token-module

That page says:

==
secure_token_last_modified
syntax: secure_token_last_modified time
default: Sun, 19 Nov 2000 08:52:00 GMT
context: http, server, location
Sets the value of the last-modified header of responses that are not tokenized. An empty string leaves the value of last-modified unaltered, while the string "now" sets the header to the server current time.

secure_token_token_last_modified
syntax: secure_token_token_last_modified time
default: now
context: http, server, location
Sets the value of the last-modified header of responses that are tokenized (query / cookie) An empty string leaves the value of last-modified unaltered, while the string "now" sets the header to the server current time.
==

which seems to explain both the "that old timestamp" and the "always
the current time" that you reported in the first mail.

	f
-- 
Francis Daly        francis at daoine.org


More information about the nginx mailing list