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
We know that we always can set the signing_keyto false in config/croppa.php, but in this case we have to worry about the max number of crops, security, abuse, etc.
The text was updated successfully, but these errors were encountered:
For some reason our stage is breaking with Cloudflare. Anyway, we have implemented a regex that replaces the response changing images url to Wordpress Photon.
Guys,
Some CDNs (Cloudflare, Photon, etc) ignores querystring variables when requesting the original files. So:
http://domain.com/uploads/02/12/helder_turismo-200x200.jpg?token=b41ba0e0913219fa9cfea7d0e212f289
Becomes:
http://domain.com/uploads/02/12/helder_turismo-200x200.jpg
Which causes a token mismatch error.
My suggestion is to incorporate the token to filename, like the dimension:
http://domain.com/uploads/02/12/helder_turismo-200x200-b41ba0e0913219fa9cfea7d0e212f289.jpg
This could be bad for image SEO. If this is a concern, the token could be a "folder":
http://domain.com/uploads/02/12/b41ba0e0913219fa9cfea7d0e212f289/200x200/helder_turismo.jpg
We know that we always can set the
signing_key
to false inconfig/croppa.php
, but in this case we have to worry about the max number of crops, security, abuse, etc.The text was updated successfully, but these errors were encountered: