{"id":21032187,"url":"https://github.com/pmh-only/caddy-minify","last_synced_at":"2025-10-26T10:41:40.727Z","repository":{"id":209132382,"uuid":"723230425","full_name":"pmh-only/caddy-minify","owner":"pmh-only","description":":triangular_ruler: File (html/css/js/etc..) minification module for Caddy v2","archived":false,"fork":false,"pushed_at":"2023-11-30T05:56:25.000Z","size":173,"stargazers_count":6,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-04-12T13:32:49.016Z","etag":null,"topics":["caddy-plugin","caddy2","minification"],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/pmh-only.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2023-11-25T02:24:13.000Z","updated_at":"2025-01-31T15:48:34.000Z","dependencies_parsed_at":"2023-11-30T06:35:55.085Z","dependency_job_id":"253450f6-bb0d-418a-9432-dac0da1d9c1a","html_url":"https://github.com/pmh-only/caddy-minify","commit_stats":null,"previous_names":["pmh-only/caddy-minify"],"tags_count":3,"template":false,"template_full_name":null,"purl":"pkg:github/pmh-only/caddy-minify","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pmh-only%2Fcaddy-minify","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pmh-only%2Fcaddy-minify/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pmh-only%2Fcaddy-minify/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pmh-only%2Fcaddy-minify/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/pmh-only","download_url":"https://codeload.github.com/pmh-only/caddy-minify/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pmh-only%2Fcaddy-minify/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":281092779,"owners_count":26442440,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-10-26T02:00:06.575Z","response_time":61,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["caddy-plugin","caddy2","minification"],"created_at":"2024-11-19T12:41:27.234Z","updated_at":"2025-10-26T10:41:40.680Z","avatar_url":"https://github.com/pmh-only.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# File (html/css/js/etc..) minification module for Caddy v2\n![](docs/draw.png)\npowered by [tdewolff/minify](https://github.com/tdewolff/minify) \u0026 inspired by [hacdias/caddy-v1-minify](https://github.com/hacdias/caddy-v1-minify)\n\n## Caddy module ID\n```\nhttp.handlers.minify\n```\n\n## Support formats\n* html: `text/html`\n* css: `text/css`\n* svg: `image/svg+xml`\n* js: `^(application|text)/(x-)?(java|ecma)script$`\n* json: `[/+]json$`\n* xml: `[/+]xml$`\n\n## Performance\nSee https://github.com/tdewolff/minify#performance\n\n## How to use\nMake sure to order the handler in the correct place:\n\n```Caddyfile\n{\n    order minify after encode\n}\n```\n\nWith file_server:\n\n```\nexample.com {\n    minify\n    root ./test\n    file_server     \n}\n```\n\nor reverse_proxy:\n\n```\nexample.com {\n    minify\n    reverse_proxy localhost:8080\n}\n```\n\nlimit formats (format all when not specified.):\n\n```\nexample.com {\n    minify {\n        formats html css js\n    }\n    \n    reverse_proxy\n}\n```\n\nor simply:\n\n```\nexample.com {\n    minify html css js\n    reverse_proxy localhost:8080\n}\n```\n\n## Limitations\nThis module doesn't minify the original responses that have already been compressed, It just skips them.\n \nTo 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:\n\n```caddyfile\nreverse_proxy localhost:8080 {\n    header_up Accept-Encoding identity\n}\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpmh-only%2Fcaddy-minify","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpmh-only%2Fcaddy-minify","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpmh-only%2Fcaddy-minify/lists"}