4 ms·
This is all I am doing to serve images: https://gist.github.com/4lejandrito/6d4f903e0a692b87344e8600096a5af0 https://gist.github.com/4lejandrito/6d4f903e0a692b
by 4lejandrito 7y ago
This is all I am doing to serve images:
https://gist.github.com/4lejandrito/6d4f903e0a692b87344e8600096a5af0 https://gist.github.com/4lejandrito/6d4f903e0a692b87344e8600...
The resize function only resizes the first time and uses a cached version of the image after that.
I checked the server and the CPU is not too high so I think it must be HTTP as parent pointed out.
- BiteCode_dev 7y agoYes, I checked and all I see is 22 requests. I don't know where OP got the 504 numbers. It also loads instantly for me. Ignore my comments, then.
- 4lejandrito 7y agoI misunderstood your original comment. The reason why there were 500 requests is because I was showing a background full of creepyfaces. It made the site look much nicer but it turns out it didn't scale very well.
- BiteCode_dev 7y ago:) Well, good thing you updated the site then.