Skip to content

Commit

Permalink
Fix mime type error blocking css and js files
Browse files Browse the repository at this point in the history
  • Loading branch information
saravahdatipour committed Jan 13, 2025
1 parent 8a8db9d commit 9202745
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions nginx.conf
Original file line number Diff line number Diff line change
Expand Up @@ -12,4 +12,11 @@ server {
try_files $uri $uri/ =404;
add_header Content-Type "text/html; charset=utf-8";
}
location ~* \.(css|js|svg|png|jpg|jpeg|gif|ico|woff|woff2|ttf|eot)$ {
root /var/www/html;
try_files $uri =404;
access_log off;
expires max;
add_header Cache-Control "public";
}
}

0 comments on commit 9202745

Please sign in to comment.