Closed liwo closed 6 years ago
@liwo Can you give me an example under what circumstances this makes sense? It's probably just me, but I don't get how this can lead to working resource URLs… 😊
If you compare this to getPublicPersistentResourceUri() in line 303 this implements the same logic for static resources. This makes sense if you publish static resources to S3 and have a CloudFront distribution in front of S3. We need to publish static resources to S3 because during a deployment we have about 1 minute during which the ELB uses both old and new instances and if CloudFront tries to fetch a new resource from the ELB this fails in ~50% of the cases (because an old instance is used).
This change allows setting a base uri for static resources like the existing behaviour with base uri for persistent resources.
Fixes #17