You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
However, the detailed values are not correctly validated; methods like validate_nocache will return False in most real-world cases. I suspect this is due to a naive validation of the header:
Note that the naive comparison expects a direct match of header to value, whereas the actual expected value is max-age=0, no-cache, no-store, must-revalidate. All of the detail checks therefore fail when the header is set to the recommended value.
The text was updated successfully, but these errors were encountered:
The landing page scanner validates several cache control header values, see https://github.com/freedomofpress/securedrop.org/blob/master/scanner/scanner.py#L309
However, the detailed values are not correctly validated; methods like
validate_nocache
will returnFalse
in most real-world cases. I suspect this is due to a naive validation of the header:Note that the naive comparison expects a direct match of header to value, whereas the actual expected value is
max-age=0, no-cache, no-store, must-revalidate
. All of the detail checks therefore fail when the header is set to the recommended value.The text was updated successfully, but these errors were encountered: