sets cache-control on static user images
This commit is contained in:
parent
e0bf10626e
commit
7f431de98e
|
@ -61,7 +61,7 @@ app.set("views", [
|
|||
path.join(__dirname, "shared/views"),
|
||||
]);
|
||||
|
||||
app.use("/user_content", express.static(USER_ASSETS_DIR));
|
||||
app.use("/user_content", express.static(USER_ASSETS_DIR, { maxAge: "2h" }));
|
||||
|
||||
app.get("/health", (_req, res) => res.sendStatus(200));
|
||||
app.use(cors());
|
||||
|
|
|
@ -35,8 +35,6 @@
|
|||
<% } else { %>
|
||||
<p>No images found.</p>
|
||||
<% } %>
|
||||
<%- include("partials/user_footer") %>
|
||||
|
||||
<style>
|
||||
.image-history {
|
||||
display: grid; grid-template-columns: repeat(6, 1fr); gap: 10px;
|
||||
|
@ -69,3 +67,4 @@
|
|||
}
|
||||
}
|
||||
</style>
|
||||
<%- include("partials/user_footer") %>
|
||||
|
|
Loading…
Reference in New Issue