- Issue created by @Chris Burge
- Merge request !15Return cacheable responses from SecuritytxtController β (Open) created by Chris Burge
Currently, both the ::securitytxtFile()
and the ::securitytxtSignature()
methods for the SecuritytxtController
controller return uncacheable Response
objects, which results in a Cache-Control
header value of must-revalidate, no-cache, private
. The results in unnecessary requests bootstrapping at origin.
Return a CacheableResponse
object instead.
The TTL of both the /.well-known/security.txt and /.well-known/security.txt.sig files need to be kept in sync to prevent a cached-induced mismatch. The two files are interdependent and so are their cache invalidations. Proposal: Set the max-age equal to the policy expires timestamp minus the request timestamp.
None.
None.
None.
Active
1.0
Code