Page MenuHomeDevCentral

Fix servers log cache issue
ClosedPublic

Authored by dereckson on Feb 2 2023, 22:29.
Tags
None
Referenced Files
F2849089: D2770.id.diff
Thu, Apr 25, 01:36
Unknown Object (File)
Wed, Apr 24, 11:25
Unknown Object (File)
Wed, Apr 24, 11:25
Unknown Object (File)
Wed, Apr 24, 11:25
Unknown Object (File)
Wed, Apr 24, 08:53
Unknown Object (File)
Tue, Apr 23, 00:46
Unknown Object (File)
Tue, Apr 23, 00:02
Unknown Object (File)
Sun, Apr 21, 22:30
Subscribers
None

Details

Summary

On infra.nasqueron.org, a browser refresh was needed to update the log,
ctrl + shift + r for example. Yet, headers are configured not to cache it.

If headers are specified in both location and if block, the more precise
block wins (here the if):

"There could be several add_header directives. These directives are
inherited from the previous configuration level if and only if there
are no add_header directives defined on the current level."

We then need a more precise configuration with every headers.

Reference: http://nginx.org/en/docs/http/ngx_http_headers_module.html

Test Plan

Diff Detail

Repository
rOPS Nasqueron Operations
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

dereckson created this revision.
This revision is now accepted and ready to land.Feb 7 2023, 21:07
This revision was automatically updated to reflect the committed changes.