Skip to content
Better HN
Top
New
Best
Ask
Show
Jobs
Search
⌘K
undefined | Better HN
0 points
LegionMammal978
1y ago
0 comments
Share
It does seem like CSP nonces do not play well with caching (since they must have a different value on each page load), which would make them a detriment to performance.
0 comments
default
newest
oldest
SahAssar
1y ago
You can also include a hash of the contents in the CSP, which plays well with caching.
LegionMammal978
OP
1y ago
True, a hash works as a good alternative. (Unless you're doing super weird stuff like generating inline scripts at runtime.)
j
/
k
navigate · click thread line to collapse