constant X-Cache-Status:MISS on woff files

haloween nginx-forum at
Mon Nov 27 11:26:00 UTC 2017

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:,277522,277522#msg-277522

More information about the nginx mailing list