Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

serve proxified images disregarding if saving is enabled #687

Merged
merged 1 commit into from
Apr 16, 2020

Conversation

paskal
Copy link
Sponsor Collaborator

@paskal paskal commented Apr 14, 2020

Resolves #614.

  • serve /api/v1/img requests disregarding if saving of image proxy is enabled or not
    This does increase the load time for every proxified image with caching disabled, as we first try to read it from cache anyway.
  • document behavior above in the readme
  • fix reference to outdated ENV configuration variable in Readme

@paskal paskal requested review from umputun and smaant April 14, 2020 23:14
@paskal paskal added the backend label Apr 14, 2020
@github-actions
Copy link

Pull Request Test Coverage Report for Build bfcfe5672-PR-687

  • 1 of 1 (100.0%) changed or added relevant line in 1 file are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage increased (+0.09%) to 83.436%

Totals Coverage Status
Change from base Build c3896934c: 0.09%
Covered Lines: 5133
Relevant Lines: 6152

💛 - Coveralls

README.md Outdated Show resolved Hide resolved
@umputun
Copy link
Owner

umputun commented Apr 15, 2020

the PR missing some test proving how it works in real life. I.e. serve with cached proxy, turn the cached proxy off and try to get the image

@paskal
Copy link
Sponsor Collaborator Author

paskal commented Apr 16, 2020

I've added test which returns 501 Not Implemented before this PR and proper image with it.

Copy link
Owner

@umputun umputun left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@umputun umputun merged commit 381ca75 into master Apr 16, 2020
@paskal paskal deleted the proxy_images branch April 16, 2020 08:05
@paskal paskal added this to the v1.6 milestone Jan 15, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Disabling image proxy breaks cached images
2 participants