Set CSP header before page cache
What does this MR do?
Cached pages are not getting their CSP header set. This issue is a regression.
I had forgotton why the CSP header was set so early and because lib/inc.php handles the page cache and returns directly the CSP was not being set when there is a page in the cache.
How confident are you it won't break things if deployed?
Hopefully ok!
Links to related issues
Checklist
-
added a test, or explain why one is not needed/possible... -
no unrelated changes -
asked someone for a code review -
joined #foodsharing-beta channel at https://slackin.yunity.org -
added an entry to CHANGELOG.md (description, merge request link, username(s))