Coder Social home page Coder Social logo

Comments (7)

cshum avatar cshum commented on June 8, 2024 1

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.

cshum avatar cshum commented on June 8, 2024 1

Changes available in imagor v1.4.7 and imagorvideo v0.4.7

from imagor.

headegg avatar headegg commented on June 8, 2024

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.

headegg avatar headegg commented on June 8, 2024

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.

cshum avatar cshum commented on June 8, 2024

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.

headegg avatar headegg commented on June 8, 2024

Awesome! Thanks a million @cshum.

from imagor.

headegg avatar headegg commented on June 8, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.