Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added fix for Cloudflare image compression with quickdownload button. #3448

Open
wants to merge 4 commits into
base: master
Choose a base branch
from

Conversation

DanSleeman
Copy link

@DanSleeman DanSleeman commented Feb 17, 2024

For issue #3446

@bakugo
Copy link
Contributor

bakugo commented Feb 17, 2024

This doesn't fully fix the issue, it will work the first time you click it since the URL will not be in cloudflare's cache, but any subsequent clicks will still download the compressed image, and if anyone near you already downloaded the image using 4chan X, it might already be in the cache the first time you click. The query part should be random every time to guarantee it's not cached.

@DanSleeman
Copy link
Author

That makes sense. I apparently did not understand the full scope of the problem.

I've updated this using a random string based on the current timestamp and a random number.
Seems to be working when downloading the same image multiple times for me.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants