Comments (7)
Hi the expires()
filter is set no-cache
intentionally because it is time sensitive. But you are correct that it is reasonable to set Expires:
to cache until the timestamp specified, a detail being overlooked.
from imagor.
Changes available in imagor v1.4.7 and imagorvideo v0.4.7
from imagor.
Thanks very much for the response @cshum. I wonder if you'd be good enough to look at this proposed pull request.
Thanks again,
Alex
from imagor.
Hi. Really sorry the vips tests failed on the pull request github actions. Are the test failures really due to the changes I made in imagor.go? I can't see the connection. I must admit, before opening the PR, I had just been running imagor_test.go and not the full make test, which I have now tried to do.
I tried to follow the steps in .github.workflow.test.yml on my Ubuntu 22 laptop. I installed the dependencies and built and installed libvips 8.14.2 locally. But I can't even get all the test cases in processor_test.go to pass, even on the master branch. Many of the tests run while lots fail e.g. png/tiff/gif tests seem to be working but I'm getting "image mismatch" errors with other formats.
Apologies for the annoying newbie questions but where should I look next to try and get the PR pipeline working?
Thanks :)
from imagor.
Hi @headegg you may test the docker build at master branch:
https://github.com/cshum/imagor/pkgs/container/imagor/112906715?tag=master
ghcr.io/cshum/imagor@sha256:55bfeaa55aa3cdbd29a963801305236078a010ebc668de18859147fa09a3964c
from imagor.
Awesome! Thanks a million @cshum.
from imagor.
Hi @cshum. I tried the new :master image with and without the expire() filter and the cache headers are working as expected. I also tried specifying "cache-control: no-cache" request header which continues to work as before and you can also now send "cache-control: private" in the request and the response will have "private" instead of "public" in the cache-control header. So, all good!
Thanks very much for seeing this change through to master.
Couple of questions:
- Will you tag it as v1.4.7 now or do you tag releases based on some other kind of schedule?
- Do you create a new release of imagorvideo every time you release imagor? I'm interested in using imagorvideo with this new caching change in it.
Thanks again and keep up the amazing work.
from imagor.
Related Issues (20)
- Does it have any affect on CVE-2023-4863 ? HOT 2
- panic: runtime error: invalid memory address or nil pointer dereference HOT 1
- panic: runtime error: invalid memory address or nil pointer dereference
- Feature request: Image Presets
- Default domain feature: Allow secondary domain HOT 2
- Example of Signature in Go? HOT 1
- Multi-frame images (gif, tiff) and max height calculation
- Feature Request: Option to exclude /healthcheck from access logs HOT 1
- Feature request: color specific `meta` information
- use default quality,avif image size too large
- returning response headers from origins HOT 9
- round_corner filter fails for bmp images
- fill(none) fails on a grayscale image HOT 2
- CR2 support
- Thumbnail Extraction from .mov Issue HOT 1
- Feature Request: Header Auth Support? HOT 2
- Does not save watermark in FILE_STORAGE_BASE_DIR HOT 6
- Using font HOT 1
- NEF format poor quality
- Feature: watermark support text HOT 3
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 imagor.