Disable caching of a single file with try_files directive

Discussão em 'Angular' iniciado por Roman Kolesnikov, Novembro 7, 2024.

  1. I'm serving Angular 2 application with nginx using location section this way:

    location / {
    try_files $uri $uri/ /index.html =404;
    }


    try_files directive tries to find the requested uri in root directory and if it fails to find one it simply returns index.html

    How to disable caching of index.html file?

    Continue reading...

Compartilhe esta Página