Skip to content

Commit c9bd623

Browse files
committed
fix(nginx): add etag directive to the contexts
1 parent b17f9d0 commit c9bd623

File tree

4 files changed

+8
-0
lines changed

4 files changed

+8
-0
lines changed

.changeset/grumpy-owls-move.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"@anymodel/nginx": patch
3+
---
4+
5+
Fix etag directive

packages/nginx/src/contexts/HttpContext.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ export const directiveConfig = makeContextDirectiveConfig({
1313
"server",
1414
"keepalive_timeout",
1515
"root",
16+
"etag"
1617
],
1718
httpAccess: ["allow", "deny"],
1819
httpFastcgi: ["fastcgi_index", "fastcgi_param", "fastcgi_read_timeout"],

packages/nginx/src/contexts/HttpServerContext.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ const directiveConfig = makeContextDirectiveConfig({
1515
"location",
1616
"keepalive_timeout",
1717
"root",
18+
"etag",
1819
],
1920
httpAccess: ["allow", "deny"],
2021
httpFastcgi: ["fastcgi_index", "fastcgi_param", "fastcgi_read_timeout"],

packages/nginx/src/contexts/LocationContext.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ const directiveConfig = makeContextDirectiveConfig({
2222
"try_files",
2323
"keepalive_timeout",
2424
"root",
25+
"etag",
2526
],
2627
httpAccess: ["allow", "deny"],
2728
httpFastcgi: [

0 commit comments

Comments
 (0)