%{VARNAME}o The contents of VARNAME: header line(s) in the reply.
%{VARNAME}i The contents of VARNAME: header line(s) in the request sent to the server.
-
http://httpd.apache.org/docs/current/mod/mod_log_config.html#logformatReally cool :)
Good to know about accept language format :
Example : fr,en-US;q=0.7,en;q=0.3
q value is between 0 and 1 (default value is 1)
the bigger it is the the higher is the priority to select a language
Here client says :
I prefer fr (q=1)
Then en-US (q=0.7)
Then..
-
http://mashing-it-up.blogspot.com/2008/10/parsing-accept-language-in-rails.htmlPetite chose à savoir côté conf nginx : chaque header appartenant à la requête est disponible sous la forme d'une variable portant le nom : $http_name
avec "name" = le nom du header en remplaçant les "-" par des "_" et le tout en minuscule, ouf.
Exemple : X-Header-De-la-mort devient : $http_x_header_de_la_mort
Utile pour introduire de la logique conditionnelle sur ces headers :)
-
http://nginx.org/en/docs/http/ngx_http_core_module.htmlComment empecher le browser de mettre en cache le contenu d'une response.
-
http://stackoverflow.com/questions/5139785/how-to-prevent-the-result-of-servlets-from-being-cached