Welcome! Log In Create A New Profile

Advanced

Отсутствует ETAG, nginx-1.6.2

September 29, 2014 10:19AM
Нет etag в заголовке (nginx-1.6.2)


Пример из конфига

location ~ "^/start/([0-9a-f]{32}).js$" {
proxy_pass http://127.0.0.1:8080;
proxy_set_header Host $http_host;

etag on;

limit_req zone=r_unified burst=5;

# Cache. Temporary stop while development
log_not_found off;
proxy_cache_valid 4M;
proxy_cache c_unified_js;
expires max;
}

По логике должен быть - а по сути нет :(

Запрос на файл javascript передаётся в томкат http://127.0.0.1:8080, после кешируется, при повторном обращении выдаётся из кеша, но etag так и не присутствует...


Response headers:
Cache-Control:max-age=315360000
Connection:keep-alive
Content-Type:application/javascript;charset=ISO-8859-1
Date:Mon, 29 Sep 2014 13:56:45 GMT
Expires:Thu, 31 Dec 2037 23:55:55 GMT
Server:nginx
Transfer-Encoding:chunked



Может tomcat ковырять недо или что-то в nginx?
Subject Author Posted

Отсутствует ETAG, nginx-1.6.2

Dimka September 29, 2014 10:19AM

Re: Отсутствует ETAG, nginx-1.6.2

Maxim Dounin September 29, 2014 12:08PM

Re: Отсутствует ETAG, nginx-1.6.2

Dimka September 29, 2014 12:37PM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 164
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready