Improve first load response time
Whenever I load an image from a new region it takes about 2s to load. Is there a way to improve this somehow?
One idea I have is to just send a request to the URL from each region when a new image is uploaded. But then I need a proxy for each location. Or is there anyway to specify a header or smth to force a specific edge location in AWS?
This is a function of how CloudFront works. CloudFront caches on a per region basis. We are researching Origin Shield to improve cache hit ratio. We will update this issue once we make a determination.
Okay, sounds good. Thanks for your response :)
This issue has not received a response in a while. If you want to keep this issue open, please leave a comment below and auto-close will be canceled.
We use origin shield for over a year, does exactly what you ask for, caching in region
Hi @Livijn, As an update, we've decided to include this option as a Deployment Parameter, which will allow you to choose a region to enabled Origin Shield in (defaulting to disabled). We plan to have this released in the next major version of SIH.
Thanks for your interest in the Serverless Image Handler :) Simon