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
@@ -36,6 +36,7 @@ export default async function StartPage() {
|
||||
focalPoint={header.hero_image.focalPoint}
|
||||
sizes="100vw"
|
||||
fill
|
||||
priority
|
||||
/>
|
||||
) : null}
|
||||
</header>
|
||||
|
||||
@@ -105,6 +105,7 @@ export function MainMenu({
|
||||
height={22}
|
||||
src={logo.url}
|
||||
width={logo.dimension.width}
|
||||
priority
|
||||
/>
|
||||
</a>
|
||||
|
||||
|
||||
@@ -13,6 +13,7 @@ export default async function Hero({ alt, src, focalPoint }: HeroProps) {
|
||||
width={1196}
|
||||
src={src}
|
||||
focalPoint={focalPoint}
|
||||
priority
|
||||
/>
|
||||
)
|
||||
}
|
||||
|
||||
@@ -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",
|
||||
|
||||
|
Before Width: | Height: | Size: 64 KiB After Width: | Height: | Size: 18 KiB |
|
Before Width: | Height: | Size: 115 KiB After Width: | Height: | Size: 16 KiB |
|
Before Width: | Height: | Size: 115 KiB After Width: | Height: | Size: 16 KiB |
|
Before Width: | Height: | Size: 72 KiB After Width: | Height: | Size: 18 KiB |
|
Before Width: | Height: | Size: 161 KiB After Width: | Height: | Size: 16 KiB |
|
Before Width: | Height: | Size: 96 KiB After Width: | Height: | Size: 20 KiB |