
Product
Secure Your AI-Generated Code with Socket MCP
Socket MCP brings real-time security checks to AI-generated code, helping developers catch risky dependencies before they enter the codebase.
github.com/apwlq/caddy-minify
powered by tdewolff/minify & inspired by hacdias/caddy-v1-minify
http.handlers.minify
text/html
text/css
image/svg+xml
^(application|text)/(x-)?(java|ecma)script$
[/+]json$
[/+]xml$
See https://github.com/tdewolff/minify#performance
Make sure to order the handler in the correct place:
{
order minify after encode
}
With file_server:
example.com {
minify
root ./test
file_server
}
or reverse_proxy:
example.com {
minify
reverse_proxy localhost:8080
}
limit formats (format all when not specified.):
example.com {
minify {
formats html css js
}
reverse_proxy
}
or simply:
example.com {
minify html css js
reverse_proxy localhost:8080
}
This module doesn't minify the original responses that have already been compressed, It just skips them.
To work around this, you may send the Accept-Encoding: identity
request header to the upstream to tell it not to compress the response. For example:
reverse_proxy localhost:8080 {
header_up Accept-Encoding identity
}
FAQs
Unknown package
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Product
Socket MCP brings real-time security checks to AI-generated code, helping developers catch risky dependencies before they enter the codebase.
Security News
As vulnerability data bottlenecks grow, the federal government is formally investigating NIST’s handling of the National Vulnerability Database.
Research
Security News
Socket’s Threat Research Team has uncovered 60 npm packages using post-install scripts to silently exfiltrate hostnames, IP addresses, DNS servers, and user directories to a Discord-controlled endpoint.