-
{$page.status}
-
{$page.error?.message}
- {#if $page.status !== 404}
+
{page.status}
+
{page.error?.message}
+ {#if page.status !== 404}
{/if}
diff --git a/src/routes/api/avatar/[uuid]/+server.ts b/src/routes/api/avatar/[uuid]/+server.ts
index 182a12a..06098e7 100644
--- a/src/routes/api/avatar/[uuid]/+server.ts
+++ b/src/routes/api/avatar/[uuid]/+server.ts
@@ -8,7 +8,8 @@ export async function GET({ params: { uuid } }) {
return new Response(fallback, {
status: 200,
headers: {
- 'Content-Type': 'image/png'
+ 'Content-Type': 'image/png',
+ 'Cache-Control': 'max-age=3600'
}
});
}
@@ -17,7 +18,8 @@ export async function GET({ params: { uuid } }) {
return new Response(readUpload, {
status: 200,
headers: {
- 'Content-Type': uploadFile.mimetype
+ 'Content-Type': uploadFile.mimetype,
+ 'Cache-Control': 'max-age=3600'
}
});
}
diff --git a/src/routes/api/avatar/client/[uuid]/+server.ts b/src/routes/api/avatar/client/[uuid]/+server.ts
index 3f2cb24..9e505cb 100644
--- a/src/routes/api/avatar/client/[uuid]/+server.ts
+++ b/src/routes/api/avatar/client/[uuid]/+server.ts
@@ -8,7 +8,8 @@ export async function GET({ params: { uuid } }) {
return new Response(fallback, {
status: 200,
headers: {
- 'Content-Type': 'image/png'
+ 'Content-Type': 'image/png',
+ 'Cache-Control': 'max-age=3600'
}
});
}
@@ -17,7 +18,8 @@ export async function GET({ params: { uuid } }) {
return new Response(readUpload, {
status: 200,
headers: {
- 'Content-Type': uploadFile.mimetype
+ 'Content-Type': uploadFile.mimetype,
+ 'Cache-Control': 'max-age=3600'
}
});
}
diff --git a/src/routes/login/+page.svelte b/src/routes/login/+page.svelte
index 4ae12de..cb964ee 100644
--- a/src/routes/login/+page.svelte
+++ b/src/routes/login/+page.svelte
@@ -12,7 +12,6 @@
import ButtonRow from '$lib/components/container/ButtonRow.svelte';
import TitleRow from '$lib/components/container/TitleRow.svelte';
import ThemeButton from '$lib/components/ThemeButton.svelte';
- import { page } from '$app/stores';
interface Props {
data: PageData;
diff --git a/src/routes/login/password/+page.svelte b/src/routes/login/password/+page.svelte
index e931377..7038270 100644
--- a/src/routes/login/password/+page.svelte
+++ b/src/routes/login/password/+page.svelte
@@ -1,6 +1,6 @@