·
Added a discussion
Hello, I want to tell you there is a place I do not know.
I am using nginx for the server, but I am struggling with setting proxy_cache. Could you tell me how to set it up?
Also, if you enable caching, videos will not play in Safari.
  • 2066
Comments
    • I would suggest caching only for these UNA files:

          location ~* ^(/cache_public/|/plugins_public/|/modules/|/studio/|/template/).+\.(jpg|jpeg|gif|css|png|js|ico|svg)$ {
              expires 1M;
              access_log off;
              add_header Cache-Control "public";
              try_files $uri =404;
          }
      • Thank you.
        Is it better not to use nginx's proxy cache?
        Could you tell me more specifically?
        • You can use proxy_cache, but you need to understand why and what you are caching. In previous post I've specifies files which are safe to cache anywhere. In my example it's cached in client's browser.

          • I understand.
            Because I used a translator, I could not understand it. Thank you.
            Login or Join to comment.