You are not logged in.

olihar

Trainee

  • "olihar" started this thread

Posts: 140

Location: Iceland

Occupation: Interaction Designer

  • Send private message

1

Saturday, January 4th 2014, 11:03pm

Amazon Cloud Front

I have having some really strange issues with Amazon Cloud front, Tiles will load for about 80% of people but rest of them get errors on loading the tiles.

http://olihar.com/dynkur/




Any suggestions? I do think this is a CORS issue...

ramirox3

Intermediate

Posts: 354

Location: La Ceja, Colombia

Occupation: photographer

  • Send private message

2

Sunday, January 5th 2014, 12:12am

Hi, olihar
works well, on desktop and iPad. Nice image I like it *thumbsup*

Posts: 1,857

Occupation: Virtual Tours - Photography - Krpano developer

  • Send private message

3

Sunday, January 5th 2014, 1:56am

Looks like its missing a level. Perhaps your xml is copied from another project and doesnt match the actual levels.
KRPano Developer: Portfolio ::Gigapixel Tagging Solutions - Porfolio 2 :: Facebook :: Twitter :: reddit.com/r/VirtualTour

4

Sunday, January 5th 2014, 10:25am

Hi,

in my case it's also working everywhere.

Regarding Cloudfront usage - where the CORS headers already there at the first try or have you added them later?

If added later, you need to be aware about Cloudfront works how it distribute and caches the files - on the first request the server nearest to your will request for real file on your source server and the store the file (+header) on itself, all following requests will be served directly with the cached file. When the source file later will be changed (like it headers), the cache will still remain unchanged.

To make that all Cloudfront distribution servers are severing the same files, force a 'invalidation' by sending an 'invalidation request':
http://docs.aws.amazon.com/AmazonCloudFr…objects-console

So far I remember this can take up to a few hours.
Additionally also clear the browser cache of course.

Best regards,
Klaus

olihar

Trainee

  • "olihar" started this thread

Posts: 140

Location: Iceland

Occupation: Interaction Designer

  • Send private message

5

Sunday, January 5th 2014, 1:32pm

There was no change to CORS afterwards... but just to make sure I made a test with new files and new location on CloudFront.

http://www.olihar.com/dynkur2/

Here is straight to S3 bucket at it works just fine.

http://www.olihar.com/dynkur4/

And here is a completely another bucket and another CloudFront URL, and this should not work as I have not setup CORS here.
http://www.olihar.com/dynkur3/

Same problem here.

This post has been edited 1 times, last edit by "olihar" (Jan 5th 2014, 3:06pm)


Posts: 1,857

Occupation: Virtual Tours - Photography - Krpano developer

  • Send private message

6

Sunday, January 5th 2014, 11:37pm

All your cloudfront examples work now for me.
KRPano Developer: Portfolio ::Gigapixel Tagging Solutions - Porfolio 2 :: Facebook :: Twitter :: reddit.com/r/VirtualTour

olihar

Trainee

  • "olihar" started this thread

Posts: 140

Location: Iceland

Occupation: Interaction Designer

  • Send private message

7

Sunday, January 5th 2014, 11:42pm

Example dynkur3 should not work unless you are using Internet Explorer, there is no CORS settings on that one what so ever.

Posts: 1,857

Occupation: Virtual Tours - Photography - Krpano developer

  • Send private message

8

Monday, January 6th 2014, 3:15am

It works too on ipad.
KRPano Developer: Portfolio ::Gigapixel Tagging Solutions - Porfolio 2 :: Facebook :: Twitter :: reddit.com/r/VirtualTour