Automatic resizing
# i3 - resize
sub vcl_recv {
if (req.http.host == "www.mi-dominio.es") {
if (req.url ~ "^/estaticos/imagenes/") {
set req.http.TCDN-i3-transform = "resize:300x300";
}
}
}# i3 - resize
sub vcl_recv {
if (req.http.host == "www.mi-dominio.es") {
if (req.url ~ "^/estaticos/imagenes/(320x200|640x400|800x600)/") {
set req.http.size = regsub(req.url, "^/estaticos/imagenes/([0-9]+x[0-9]+)/(.*)", "\1");
set req.url = regsub(req.url, "^/estaticos/imagenes/([0-9]+x[0-9]+)/(.*)", "/estaticos/imagenes/\2");
set req.http.TCDN-i3-transform = "resize:" + req.http.size;
unset req.http.size;
}
}
}PreviousInclusion of graphics in the footer (strip)NextDefinition of the maximum size (content-length)
Last updated
Was this helpful?
