eva2000
(George)
August 6, 2016, 5:38pm
1
minify https://caddyserver.com/docs/minify seems handy almost an equivalent function of nginx pagespeed module’s filters for minification etc
would it support wildcard paths ?
i.e.
minify {
only */js/jquery
}
so any directory url containing /js/jquery ? like /js/jquery and /blog/js/jquery would both match ?
abiosoft
(Abiola Ibrahim)
August 7, 2016, 7:20am
3
If @hacdias wishes, an easy way out is to integrate if conditions and something like if {path} ends_with /js/query will be possible.
hacdias
(Henrique Dias)
August 7, 2016, 8:38am
4
I like the @abiosoft idea! What do you think?
if {path} starts_with /sth/
if {path} ends_with /sth.js
if {path} is /sth/sth.css
abiosoft
(Abiola Ibrahim)
August 7, 2016, 9:44am
5
@hacdias you can look at setup.go file for redir to see how to integrate it. Feel free to ping me if you have any questions.
hacdias
(Henrique Dias)
August 10, 2016, 9:01am
7
Hey @eva2000 ,
I’ve made some updates to caddy-minify and now it supports if and if_op and I’ve removed my own directives. If you want to run it right now, you have to build Caddy from source. Then, check the new syntax here . It will be available on caddyserver.com in undetermined time (c.c. @matt ).
Thanks for having this excellent idea!
eva2000
(George)
August 10, 2016, 12:05pm
8
@hacdias thanks for the heads up - this will be useful