Merged in fix/image-caching (pull request #1586)

fix/images: changed default cache time from 1 minute to 31 days. Reduced size of swan icons

* fix/images: changed default cache time from 1 minute to 31 days. Reduced size of swan icons

* More performance improvements

* Priority on hero image on startpage


Approved-by: Anton Gunnarsson
This commit is contained in:
Linus Flood
2025-03-21 07:58:44 +00:00
parent 3c1eee88b1
commit 91a9f68be0
10 changed files with 6 additions and 0 deletions

View File

@@ -36,6 +36,7 @@ export default async function StartPage() {
focalPoint={header.hero_image.focalPoint}
sizes="100vw"
fill
priority
/>
) : null}
</header>

View File

@@ -105,6 +105,7 @@ export function MainMenu({
height={22}
src={logo.url}
width={logo.dimension.width}
priority
/>
</a>

View File

@@ -13,6 +13,7 @@ export default async function Hero({ alt, src, focalPoint }: HeroProps) {
width={1196}
src={src}
focalPoint={focalPoint}
priority
/>
)
}

View File

@@ -35,6 +35,9 @@ const nextConfig = {
},
},
images: {
minimumCacheTTL: 2678400, // 31 days
deviceSizes: [320, 420, 768, 1024, 1200, 2400],
imageSizes: [200, 400, 800, 1200, 1920],
remotePatterns: [
{
protocol: "https",

Binary file not shown.

Before

Width:  |  Height:  |  Size: 64 KiB

After

Width:  |  Height:  |  Size: 18 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 115 KiB

After

Width:  |  Height:  |  Size: 16 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 115 KiB

After

Width:  |  Height:  |  Size: 16 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 72 KiB

After

Width:  |  Height:  |  Size: 18 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 161 KiB

After

Width:  |  Height:  |  Size: 16 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 96 KiB

After

Width:  |  Height:  |  Size: 20 KiB