amazon-cloudfront

After deploy taking time to reflect changes

馋奶兔 提交于 2021-01-28 09:05:53
问题 I have a project which is built-in ReactJs. and I am using s3 and CloudFront for deployment. I am facing an issue whenever I deploy code after deployment it takes too much time to reflect changes. sometimes I have to manually clear browser cookies for the latest changes. Do I need to configure S3 or CloudFront settings? 回答1: Follow this steps: Go to cloudfront : Do invalidation of objects Create entry /* Reference : https://aws.amazon.com/premiumsupport/knowledge-center/cloudfront-serving

Why do I need to clean cache to see the up to date modules in my angular app?

↘锁芯ラ 提交于 2021-01-28 07:45:36
问题 We have an Angular 10 app that everytime we make a deployment to AWS, or even in DEV enviroment(over ngnix) we need to clean cache (CTRL+F5, doing this is solved). We have tried in the Angular project the next meta tags: <meta http-equiv="cache-control" content="no-cache, must-revalidate, post-check=0, precheck=0"> <meta http-equiv="expires" content="0"> <meta http-equiv="pragma" content="no-cache"> Another ideas we have tried is alternating hashing the file names by deployment. Once is done

Is there a way to list CloudFront distributions by tag without downloading them all using ListDistributions?

青春壹個敷衍的年華 提交于 2021-01-28 07:20:40
问题 This question is similar, but the only answer there is to get the list of all distributions and filter them locally, which is not what I am looking for. This page hints that it might be possible to filter by tag ( "You can search and filter your resources based on the tags you add" ), but I just cannot figure out how ! 回答1: I can only think of one way, since aws cloudfront doesn't directly support get distributions by tag. we can use resourcegroupstaggingapi cli , to get ResourceARNs of all

How does versioning work on Amazon Cloudfront?

孤人 提交于 2021-01-28 05:33:03
问题 I've just set up a static website on Amazon S3. I'm also using the Cloudfront CDN service. According to Amazon, there are 2 methods available for clearing the Cloudfront cache: invalidation and versioning. My question is regarding the latter. Consider the following example: I link to an image file ( image.jpg ) from my index.html file. I then decide to replace the image. I upload a second image with the filename: image_2.jpg and change the link in my index.html file. Will the changes

Amazon Cloudfront and .htaccess

左心房为你撑大大i 提交于 2021-01-27 06:07:01
问题 I'm testing out Amazon Cloudfront in our dev environment, which is protected by .htaccess/.htpasswd. The password protection on the dev server is causing all of the cloudfront.net assets to be password protected as well. And no username/password combination works. What I need to do is allow cloudfront to access the dev server by poking some holes in the .htaccess protection. I can get a list of IP addresses here but since they are subject to change, I was wondering if anyone knew of a better

Amazon Cloudfront and .htaccess

扶醉桌前 提交于 2021-01-27 06:02:24
问题 I'm testing out Amazon Cloudfront in our dev environment, which is protected by .htaccess/.htpasswd. The password protection on the dev server is causing all of the cloudfront.net assets to be password protected as well. And no username/password combination works. What I need to do is allow cloudfront to access the dev server by poking some holes in the .htaccess protection. I can get a list of IP addresses here but since they are subject to change, I was wondering if anyone knew of a better

Invalid paths using CloudFront create invalidation in C#

时光怂恿深爱的人放手 提交于 2021-01-27 05:57:30
问题 I am trying to invalidate CloudFront objects in C#/.NET and gettign the following exception: Your request contains one or more invalid invalidation paths. My Function: public bool InvalidateFiles(string[] arrayofpaths) { for (int i = 0; i < arrayofpaths.Length; i++) { arrayofpaths[i] = Uri.EscapeUriString(arrayofpaths[i]); } try { Amazon.CloudFront.AmazonCloudFrontClient oClient = new Amazon.CloudFront.AmazonCloudFrontClient(MY_AWS_ACCESS_KEY_ID, MY_AWS_SECRET_KEY, Amazon.RegionEndpoint

Route53 and Cloudfront The request could not be satisfied?

假装没事ソ 提交于 2021-01-26 13:17:19
问题 I just want to serve my s3 files on cdn.mydomain.com So I create cloudfront distribution which is working fine on https://dxxxxxxxx.cloudfront.net/test.jpg - I get the image. And now I want to associate my domain at cdn.domain.com with cloudfront in route53. So I create A record type A-IPv4 address. with name cdn.domain.com alias target I manully put dxxxxxxxx.cloudfront.net . But when I open the url: http://cdn.mydomain.com/test.jpg I get the error: 403 ERROR The request could not be

Route53 and Cloudfront The request could not be satisfied?

生来就可爱ヽ(ⅴ<●) 提交于 2021-01-26 13:16:59
问题 I just want to serve my s3 files on cdn.mydomain.com So I create cloudfront distribution which is working fine on https://dxxxxxxxx.cloudfront.net/test.jpg - I get the image. And now I want to associate my domain at cdn.domain.com with cloudfront in route53. So I create A record type A-IPv4 address. with name cdn.domain.com alias target I manully put dxxxxxxxx.cloudfront.net . But when I open the url: http://cdn.mydomain.com/test.jpg I get the error: 403 ERROR The request could not be

Route53 and Cloudfront The request could not be satisfied?

£可爱£侵袭症+ 提交于 2021-01-26 13:11:09
问题 I just want to serve my s3 files on cdn.mydomain.com So I create cloudfront distribution which is working fine on https://dxxxxxxxx.cloudfront.net/test.jpg - I get the image. And now I want to associate my domain at cdn.domain.com with cloudfront in route53. So I create A record type A-IPv4 address. with name cdn.domain.com alias target I manully put dxxxxxxxx.cloudfront.net . But when I open the url: http://cdn.mydomain.com/test.jpg I get the error: 403 ERROR The request could not be