ok, got the buffers and gzip on the proxy level. I wanted to do caching on actual web server level. I have specified following in 'http' section;
proxy_cache_path /var/cache/www levels=1:2 keys_zone=devserv_cache:8m max_size=1000m inactive=600m;
and below in 'server' section,
# This block will catch static file requests, such as images, css, js
# The ?: prefix is a 'non-capturing' mark, meaning we do not require
# the pattern to be captured into $1 which should help improve performance
location ~* \.(?:ico|css|js|gif|jpe?g|png)$ {
# Some basic cache-control for static files to be sent to the browser
expires max;
add_header Pragma public;
add_header Cache-Control "public, must-revalidate, proxy-revalidate";
According to the documentation on nginx wiki, I should see cached files hashes populating in '/var/cache/www' however, that folder is empty. Checked permissions for the folder, looking good.
Where should I look?
proxy_cache_path /var/cache/www levels=1:2 keys_zone=devserv_cache:8m max_size=1000m inactive=600m;
and below in 'server' section,
# This block will catch static file requests, such as images, css, js
# The ?: prefix is a 'non-capturing' mark, meaning we do not require
# the pattern to be captured into $1 which should help improve performance
location ~* \.(?:ico|css|js|gif|jpe?g|png)$ {
# Some basic cache-control for static files to be sent to the browser
expires max;
add_header Pragma public;
add_header Cache-Control "public, must-revalidate, proxy-revalidate";
According to the documentation on nginx wiki, I should see cached files hashes populating in '/var/cache/www' however, that folder is empty. Checked permissions for the folder, looking good.
Where should I look?