Page MenuHomeDevCentral

Fix servers log cache issue
ClosedPublic

Authored by dereckson on Feb 2 2023, 22:29.
Tags
None
Referenced Files
F57037301: D2770.id7036.diff
Fri, Nov 13, 10:20
F56986039: D2770.diff
Thu, Nov 12, 11:49
F56744675: D2770.id7036.diff
Sun, Nov 8, 21:51
F56726401: D2770.id7035.diff
Sun, Nov 8, 16:42
F56422961: D2770.id7069.diff
Fri, Nov 6, 01:16
F56051490: D2770.id7036.diff
Mon, Nov 2, 09:22
F56041749: D2770.id7035.diff
Mon, Nov 2, 06:50
F55985929: D2770.diff
Sun, Nov 1, 23:16
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 Passed
Unit
No Test Coverage
Branch
main
Build Status
Buildable 4389
Build 4656: arc lint + arc unit

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.