RB
Size: a a a
RB
RB
SZ
KK
БС
SA
SA
KK
KK
sub vcl_backend_response {Перед тем как отдать ответ клиенту - возвращаем исходное значение Cache-Control (что бы другие кеши в интернете не кешировали этот ответ):
if (beresp.http.Cache-Control ~ "private") {
set beresp.http.X-Orig-Cache-Control = beresp.http.Cache-Control;
set beresp.http.Cache-Control = regsub(beresp.http.Cache-Control, "private", "public");
}
}
sub vcl_deliver {
if (resp.http.X-Orig-Cache-Control) {
set resp.http.Cache-Control = resp.http.X-Orig-Cache-Control;
unset resp.http.X-Orig-Cache-Control;
}
}
AS
KK
KK
KK
KK
KK
KK
KK
RB
KK
KK