58563f702e247f4ca277e11a1ba42b527cde318e
[lhc/ateliers.git] / etc / nginx / site.d / lhc-stats / http.conf
1 upstream php5_fpm_lhc_stats {
2 server unix:/run/php5/fpm/lhc_stats;
3 }
4
5 map $request_method $no_cache {
6 # NOTE: if non GET/HEAD, don't cache.
7 default 1;
8 HEAD 0;
9 GET 0;
10 }
11 map $arg_module $no_cache {
12 ## When we go through installation
13 ## or when we're on the dashboard for specific tasks.
14 Installation 1; # when invoking the installation module.
15 ~[^\&]*(?:Dashboard|Live|Goals|Admin|Manager) 1; # some tasks
16 }
17 map $arg_action $no_cache {
18 ## The first installation steps don't invoke the installation module.
19 systemCheck 1;
20 databaseSetup 1;
21 }
22 map $http_cookie $no_cache {
23 ## Testing for the session cookie being present.
24 ## If there is then no caching is to be done.
25 ~PIWIK_SESSID 1; # Piwik session cookie
26 }
27
28 # vim: ft=sh