Home > Back-end >  Some favicon images come corrupt from Kubernetes cluster
Some favicon images come corrupt from Kubernetes cluster

Time:07-11

I'm trying to figure out why this is happening. In production, my site dhex screenshot showing 2 bits changed

CodePudding user response:

I believe the issue is not with the serving of the content, rather the content itself is corrupt. I mean there is nothing wrong with your ingress configuration, or the site traffic setup in general.

If you try and open the icon you downloaded with GET ==> 200 OK, you might see that the icon is indeed corrupted. The HTTP protocol does not verify the "sanity" of the data, and so, as far as HTTP is concerned, you can have a mixture of random bytes encoded into a PNG file, and it will transport them successfully as well. It will only verify the content encoding correctness, not the sanity of the payload.

Perhaps you can try and regenerate the icons.

CodePudding user response:

Files were corrupted on the repository, probably something is wrong with my Git configuration (newline replacement, maybe?) since the generated files come from a third-party service, and thus something may be changed in the contents by Git.

I work around this activating Git LFS in my repository.

  • Related