Comments (4)
Hi, dear @flapili, and thanks for explaining your issue.
It is not a breaking change but it is not something I think we could have enabled by default. s-maxage
cache-control directive instructs CDN proxies how long they can keep a resource cached. IPX is not a reverse caching proxy to do so. So if reverse proxy explicitly requests max-age
is zero, it should be respected and checked every time. s-max-age
could be used if for example IPX caches the HTTP response (we might in the future)
For a quick solution, i have added a new option for http.ignoreCacheControl
(can be configured for nuxt image v1 stable) via 4690342 this allows you to opt-out from infering cache-control
header altogether and you can explicitly override maxAge
.
We could also support an option like http.useSMaxAge
but since it is not same semantics for directive, i consider it unsafe to be included but still open to support via another opt-in configuration if you really think would be needed in your case.
from ipx.
I have exactly the same issue ? did you get it working without a lot of hack in source code directly ? if not I'll try to make a RP
from ipx.
@flapili nope, I patched ipx to fix it in the meantime. Hopefully we can get this fix in the v2 roadmap.
from ipx.
@Atinux and others maintainers does that is a big breaking change in your opinion ?
from ipx.
Related Issues (20)
- Support `kernel` option in resize
- allow domain validation with subpaths
- Automatic image format conversion HOT 1
- Handle fetch errors HOT 1
- Support source format and use suffix as final format
- IPX v2 roadmap HOT 1
- Not able to create pkg with ipx HOT 2
- Don't overwrite existing Vary header HOT 1
- ipx v2 returns `204 No Content` instead of `304 Not Modified` HOT 2
- The global maxAge option has no effect in ipx v2. HOT 1
- Background removal / custom handlers HOT 4
- add rounded edges modifier HOT 1
- Incorrect resize result for an image HOT 1
- Improve Handlers type exports
- sharp <0.33 installation issues HOT 5
- Query parameter falsifies the image id HOT 2
- Ability to provide options to Sharp operations
- Add back docker image HOT 1
- Bundle Sharp Wasm by default HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ipx.