Vesta Control Panel - Forum

Community Forum

Skip to content

Advanced search
  • Quick links
    • Main site
    • Github repo
    • Google Search
  • FAQ
  • Login
  • Register
  • Board index Main Section Web Server
  • Search

nginx cache not seeming to work?

Questions regarding the Web Server
Apache + Nginx, Nginx + PHP5-FPM
Post Reply
  • Print view
Advanced search
3 posts • Page 1 of 1
viraladmin
Posts: 57
Joined: Thu Apr 27, 2017 7:40 pm

Os: Ubuntu 15x
Web: apache + nginx
nginx cache not seeming to work?
  • Quote

Post by viraladmin » Mon Jun 10, 2019 9:54 pm

So i have enabled caching template. All the Proxy Extensions are defaults:

Code: Select all

jpeg, jpg, png, gif, bmp, ico, svg, tif, tiff, css, js, htm, html, ttf, otf, webp, woff, txt, csv, rtf, doc, docx, xls, xlsx, ppt, pptx, odf, odp, ods, odt, pdf, psd, ai, eot, eps, ps, zip, tar, tgz, gz, rar, bz2, 7z, aac, m4a, mp3, mp4, ogg, wav, wma, 3gp, avi, flv, m4v, mkv, mov, mpeg, mpg, wmv, exe, iso, dmg, swf
This is a fairly active domain that uses about a TB of bandwidth per month.

Yet 24 hours after enabling

Code: Select all

/var/cache/nginx/$domain
is still completely empty. We serve up a LOT of js, css, pngs and jpgs so I would expect something to be in the caching folder yet nothing...

And yes $domain is a representation of the actual domain name.

Any ideas?
Top

adamjedgar
Posts: 43
Joined: Tue Apr 18, 2017 7:55 am

Re: nginx cache not seeming to work?
  • Quote

Post by adamjedgar » Tue Jun 11, 2019 8:29 pm

Perhaps go through the nginx cache guide...
https://www.nginx.com/blog/nginx-caching-guide/
Top

fsoyer
Posts: 14
Joined: Tue May 26, 2015 12:24 pm

Re: nginx cache not seeming to work?
  • Quote

Post by fsoyer » Tue Oct 15, 2019 10:53 am

Hi there,
I have the same doubt... In the nginx config with template Caching, we find :

Code: Select all

...
location ~* ^.+\.(jpeg|jpg|png|gif|bmp|ico|svg|tif|tiff|css|js|htm|html|ttf|otf|webp|woff|txt|csv|rtf|doc|docx|xls|xlsx|ppt|pptx|odf|odp|ods|odt|pdf|psd|ai|eot|eps|ps|zip|tar|tgz|gz|rar|bz2|7z|aac|m4a|mp3|mp4|ogg|wav|wma|3gp|avi|flv|m4v|mkv|mov|mpeg|mpg|wmv|exe|iso|dmg|swf)$ {
            proxy_cache    off;
...
I'm confused. Does this mean that there is no caching for all this extensions ??
Top


Post Reply
  • Print view

3 posts • Page 1 of 1

Return to “Web Server”



  • Board index
  • All times are UTC
  • Delete all board cookies
  • The team
Powered by phpBB® Forum Software © phpBB Limited
*Original Author: Brad Veryard
*Updated to 3.2 by MannixMD
 

 

Login  •  Register

I forgot my password