mirror of
				https://github.com/elyby/accounts.git
				synced 2025-05-31 14:11:46 +05:30 
			
		
		
		
	Поправлен конфиг nginx на предмет кэширования html файлов
This commit is contained in:
		| @@ -30,7 +30,8 @@ http { | ||||
|  | ||||
|         root                  $root_path; | ||||
|         charset               utf-8; | ||||
|         client_max_body_size  100M; | ||||
|         client_max_body_size  2M; | ||||
|         etag on; | ||||
|  | ||||
|         location / { | ||||
|             alias $frontend_path; | ||||
| @@ -49,8 +50,14 @@ http { | ||||
|             fastcgi_param SERVER_NAME $host; | ||||
|         } | ||||
|  | ||||
|         # Раздача статики для frontend | ||||
|         location ~* ^.+\.(html|jpg|jpeg|gif|png|svg|js|json|css|zip|rar|eot|ttf|woff|ico) { | ||||
|         # html файлы идут отдельно, для них будет применяться E-Tag кэширование | ||||
|         location ~* \.html$ { | ||||
|             root $frontend_path; | ||||
|             access_log off; | ||||
|         } | ||||
|  | ||||
|         # Раздача статики для frontend с указанием max-кэша. Сброс будет по #hash после ребилда webpackом | ||||
|         location ~* ^.+\.(jpg|jpeg|gif|png|svg|js|json|css|zip|rar|eot|ttf|woff|ico) { | ||||
|             root $frontend_path; | ||||
|             expires max; | ||||
|             access_log off; | ||||
|   | ||||
		Reference in New Issue
	
	Block a user