Compare Security Headers on Pages, Images and Downloads
A site can serve an HTML page, image and download through different routes. Compare the actual responses separately using a small set of owned public fixtures.
Define the intended response for each fixture
Choose an ordinary HTML page, a known image and an approved downloadable file. Record the expected Content-Type, any required Content-Disposition for the download and the security header policy for each response. A page policy and a file's download semantics serve different purposes.
Inspect the final GET responses
In a clean browser network view, review the response status, redirects and final headers. Check whether an edge cache returned an older response and whether the same route is handled at origin. Record only the headers needed to diagnose the discrepancy.
Inspect the relevant policy boundary
For example, a download that opens inline may be missing its intended attachment disposition. A document's CSP comes from the policy on that response. Compare the application's policy and provider configuration before assuming all resources need identical headers.
Repeat after the scoped correction
Check the same routes and an unaffected control. Verify that the page renders, the image loads and the test download follows its intended file behavior.
Related guides
- How to Compare HTTPS at the Edge and at the Origin
- Check Whether nginx or Apache Serves a Plesk Static Asset
Official references
Ferkesh Hosting. Last reviewed .
Спасибі за відгук!