Allow specifying quality
ies to prevent cache abuse
#69798
rentalhost
started this conversation in
Ideas
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Proposal
Today we can determine settings in
next.config.js
forimages.deviceSizes
, which allows us to generate an error when the specified size does not belong to this list. However, we can still determinequality
ies as we wish, which can generate cache abuse if a malicious user enters values from1
to100
for each image, the application's proposal is to always use one or two specific qualities, most of the time.It would be interesting to be able to delimit the qualities we want to make available, such as
75
and100
, and any other value could generate an access error.Beta Was this translation helpful? Give feedback.
All reactions