Learn about Centmin Mod LEMP Stack today
Become a Member

Nginx Nginx cache by default or not?

Discussion in 'Nginx, PHP-FPM & MariaDB MySQL' started by pamamolf, Feb 24, 2015.

Tags:
  1. pamamolf

    pamamolf Well-Known Member

    3,111
    295
    83
    May 31, 2014
    Ratings:
    +530
    Local Time:
    3:25 AM
    Nginx-1.13.x
    MariaDB 10.1.x
    Hi

    Does Nginx cache data by default installation?

    I am not talking about zend cache or memcache .... just for nginx web cache.....
    Static files.....

    Thanks
     
  2. eva2000

    eva2000 Administrator Staff Member

    35,118
    7,753
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +11,956
    Local Time:
    10:25 AM
    Nginx 1.15.x
    MariaDB 5.5/10.x
    For static files only cache is browser level caching set via expires headers for Centmin Mod's Nginx build via /usr/local/nginx/conf/staticfiles.conf includes file but no Nginx cache itself.

    Default Nginx from other install methods like YUM and other OS distributions do not set expires headers for static files by default though.
     
    • Like Like x 1
..