Skip to content

~70% smaller cache check responses: HTTP headers only on DOM Documents

fdroidclient uses HEAD requests to check if the index and APKs are cached or not. This reduces the size of the response from 886 bytes to 284 bytes by removing the HTTP Content-Security-Policy and related headers from the response if the file is not a DOM "Document or Worker".

This uses the <FilesMatch> pattern from !454 (merged), and just applies it to all the HTTP security headers.

Edited by Hans-Christoph Steiner

Merge request reports