Welcome! Log In Create A New Profile


constant X-Cache-Status:MISS on woff files

Posted by haloween 
constant X-Cache-Status:MISS on woff files
November 27, 2017 12:30PM
I have a problem with cacheing.

Following location in my config - perfectly handles all the extensions jpeg,
jpg and stuff.

location ~*
\.(?:ico|pdf|flv|jpg|jpeg|png|gif|swf|x-html|woff|woff2|ttf|eot|map)$ {
gzip off;
expires 30d;
log_not_found off;
access_log off;
add_header Cache-Control "public";
add_header Access-Control-Allow-Origin *;
add_header X-Cache-Status $upstream_cache_status;

proxy_cache img_cache_main;
proxy_buffers 2048 64k;
proxy_buffer_size 128k;
proxy_set_header Host "HOSTNAME";

proxy_ignore_headers Cache-Control Vary Expires Set-Cookie
proxy_cache_valid 404 1m;

aio threads=default;
aio_write on;
output_buffers 16 1024k;
sendfile on;

proxy_pass http://HOSTNAME_appserver;

Unfortunately i get MISS on all woff files :/

Posted at Nginx Forum: https://forum.nginx.org/read.php?2,277522,277522#msg-277522

nginx mailing list
Sorry, only registered users may post in this forum.

Click here to login