-
-
Notifications
You must be signed in to change notification settings - Fork 5.5k
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
Use Cache-Control: no-transform
to disable Cloudflare auto minify
#19309
Comments
Cache-Control: no-transform
to disable Cloudflare auto minifiyCache-Control: no-transform
to disable Cloudflare auto minify
Reading through the docs this will also disable gzip/brotli compression, which I don't think is necessarily what you would want to do? |
Whitespace in HTML is often times significant, I think it's a bug on CF if they remove significant whitespace and break sites that way. Anyways, I would not be opposed to adding |
It won't be a problem. Gitea has builtin |
Is it possible that if we use |
I have no idea about whether Cloudflare affects the content inside |
Depends on which HTML minfier they are using, but I suspect it might help, but I'm not sure if the introduction of |
Many users report that all the tab/space in code disappear. The code indent/indentation become messy.
The reason is that they put Gitea behind Cloudflare, and they enabled the
auto minify
feature on Cloudflare.The workaround is to disable the
auto minify
feature on Cloudflare.Also, Cloudflare has an option to disable the auto minify:
Cache-Control: no-transform
Issues:
and more
Ref:
The text was updated successfully, but these errors were encountered: