I\'m serving Angular 2 application with nginx using location section this way:
location / { try_files $uri $uri/ /index.html =404; }
try_file
You can use content-type mapping (should do the job for SPA with one .html file):
.html
map $sent_http_content_type $expires { default off; text/html epoch; # means no-cache } server { expires $expires; }