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

[Bug] image cache problem #6

Open
1 of 3 tasks
umbrella-h opened this issue Jan 27, 2023 · 7 comments · Fixed by #8
Open
1 of 3 tasks

[Bug] image cache problem #6

umbrella-h opened this issue Jan 27, 2023 · 7 comments · Fixed by #8
Labels
bug Something isn't working wontfix This will not be worked on

Comments

@umbrella-h
Copy link
Owner

umbrella-h commented Jan 27, 2023

The image in my profile README
is not updated immediately as expected.
(Checked that the file in Cloudinary is updated successfully)

Clues:

  • Cloudinary cache
  • GitHub readme image cache
  • browser cache
@umbrella-h umbrella-h changed the title [Bug] Cloudinary cache invalidation [Bug] image cache problem Jan 27, 2023
@umbrella-h umbrella-h reopened this Jan 29, 2023
@umbrella-h
Copy link
Owner Author

umbrella-h commented Jan 29, 2023

Adding invalidate: true in Cloudinary upload parameters
Somehow influenced image scraping
(Not every job.)
so I removed it temporarily.

2816E362-3C5D-4BBD-A608-61D514DB54FD

@umbrella-h
Copy link
Owner Author

umbrella-h commented Jan 29, 2023

Cache-control across user browsers is related to adding header parameters to the image response, which might be hosted by GitHub.

I tried to add metadata in README...
But it showed no effect on the image, so I removed the metadata settings.

Remain unsolved.

@umbrella-h
Copy link
Owner Author

Besides, I faced this problem while running this action.

Going to try to show my avatar via Gist
rather than Cloudinary & profile README.

@umbrella-h
Copy link
Owner Author

umbrella-h commented Feb 9, 2023

Adding invalidate: true in Cloudinary upload parameters Somehow influenced image scraping (Not every job.) so I removed it temporarily.

It still happens
BDD0AABF-5870-471C-A869-F315A0DE9137

@umbrella-h
Copy link
Owner Author

umbrella-h commented Feb 9, 2023

The cache problem is bypassed with Gist, but the image-scraping problem still happens.

For a hot fix,

  1. use RMagick to check the percentage of white pixels in the image, and retry if needed.
  2. Or simply set a delay before scraping

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working wontfix This will not be worked on
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant