Model
File
Magento\Csp\Model\SubresourceIntegrity\Storage\File
What it does
This class manages file-based storage for Subresource Integrity (SRI) hashes in Magento 2's CSP system.
Developers use this to store, retrieve, and delete SRI hash data as JSON files in the static view directory, with optional context-based subdirectories.
It's primarily used by the CSP module to persist and manage integrity hashes for frontend resources.
Public Methods
- load()
- save()
- remove()