Skip to content

Commit 61ef9d5

Browse files
committed
Using completionData cache headers.
1 parent dd18921 commit 61ef9d5

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

app/lib/frontend/handlers/misc.dart

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,10 @@ Future<shelf.Response> wellKnownSecurityTxtHandler(
4040
'Policy: https://pub.dev/security\n'
4141
'Preferred-Languages: en\n'
4242
'Expires: ${expiresDate}T00:00:00z\n';
43-
return shelf.Response.ok(content);
43+
return shelf.Response.ok(
44+
content,
45+
headers: CacheControl.completionData.headers, // 8 hours public cache
46+
);
4447
}
4548

4649
/// Handles requests for /help

0 commit comments

Comments
 (0)