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
According to the note about caching static files when serving them using the whitenoise package, you said that we should change the WHITENOISE_IMMUTABLE_FILE_TEST setting to consider the files generated by VITEJS to be cached.
But when looking at the regex it looks like it doesn't match the files generated by VITEJS because they are of this format: file-[hash].extname, where the separator between the file name and the hash is - not a period and the hash is 8 hexadecimal digits.
I'm missing a point or something is wrong?
The text was updated successfully, but these errors were encountered:
The regex in the note {8,12} does handle the case of 8 digits (and 12 digits, to not break compatibility with Django's ManifestStaticFilesStorage). But you're correct that it's not accounting for a - separator. So the actual working regex should be:
According to the note about caching static files when serving them using the whitenoise package, you said that we should change the
WHITENOISE_IMMUTABLE_FILE_TEST
setting to consider the files generated by VITEJS to be cached.But when looking at the regex it looks like it doesn't match the files generated by VITEJS because they are of this format:
file-[hash].extname
, where the separator between the file name and the hash is-
not a period and thehash
is 8 hexadecimal digits.I'm missing a point or something is wrong?
The text was updated successfully, but these errors were encountered: