Set CLIENT_CACHE_CONTROL setting's regex

This commit is contained in:
Théophile Diot 2023-05-21 13:04:55 -04:00
parent 9339af44c9
commit 737b999cde
No known key found for this signature in database
GPG key ID: E752C80DB72BB014

View file

@ -38,7 +38,7 @@
"help": "Value of the Cache-Control HTTP header.",
"id": "client-cache-control",
"label": "Cache-Control header",
"regex": "^.*$",
"regex": "^(?!(, ?| ))((, )?(((max-age|s-maxage|stale-while-revalidate|stale-if-error)=\\d+(?!.*\\6))|((?!.*public)private|(?!.*private)public)|(must|proxy)-revalidate|must-understand|immutable|no-(cache|store|transform))(?!.*\\5))+$",
"type": "text"
}
}