nuxt / nuxt/image

IPX max-age configuration doesn't apply

Open
#992 17 comments 11 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
TypeScript
Stars
1.5k
Forks
331
Avg merge
19h 52m
Merged PRs (30d)
9

Description

Hello,

I'm unable to increase the cache max-age of my images.

With the help of #704 , I've tried to define it via the image config with that code but it's not working.

image: {
    ipx: {
      maxAge: 60 * 60 * 24,
    },
  },
Capture d’écran 2023-09-18 à 09 39 45

I'm using nuxt:3.7.3 and @nuxtjs/image:1.0.0-rc.2

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

The issue names the Nuxt image IPX configuration (image.ipx.maxAge) and references #704; start by reproducing with Nuxt 3.7.3 and @nuxtjs/image 1.0.0-rc.2, then trace how that option reaches the image response. Done means the configured max-age is reflected in the generated image cache headers.

Written by the indexing model from the issue text.

Assessment

Tech stack
nuxt, typescript
Domain
performance, web-dev
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
42/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.