update
This commit is contained in:
@@ -97,6 +97,17 @@ app.get(
|
||||
}),
|
||||
);
|
||||
|
||||
// Serve static files with automatic ETag handling
|
||||
app.use(
|
||||
"/content",
|
||||
express.static(STATIC_DIR, {
|
||||
etag: true, // Enable automatic ETag generation
|
||||
lastModified: true, // Include Last-Modified header
|
||||
maxAge: 3600000, // Cache for 1 hour, but always revalidate
|
||||
immutable: false, // Files can change
|
||||
}),
|
||||
);
|
||||
|
||||
app.get(
|
||||
"/structure",
|
||||
asyncHandler(async (req, res) => {
|
||||
|
||||
Reference in New Issue
Block a user