Quantcast
Channel: Nginx Forum - How to...
Viewing all articles
Browse latest Browse all 4759

Re: Where to specify gzip and buffer parameters on nginx proxy and nginx web server?

$
0
0
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?

Viewing all articles
Browse latest Browse all 4759

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>