stevesouders / controljs

Automatically exported from code.google.com/p/controljs
Apache License 2.0
26 stars 9 forks source link

Scripts with content-disposition: attachment have problems loading #17

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago

I noticed that when using ControlJS to load js with Content-Disposition: 
Attachment header controljs will fail to load the script. 

Console logs the problem:
CJS 1306344530337: processNextScript: waiting for script 
http://maps.google.com/maps?file=api&v=2&key=ABQIAAAAL-spsJMgQ-I9UxvJta77YBSQht0
hUkblBVPWmSt1UoG29n1dzhRkMxq0lVPsw8hxgMwLrLsbz6TeAA

In my case it is occurring with Google Maps API v2 but ControlJS definitely 
used to work with Google Maps v2 as I tested it months ago and this problem 
just cropped up recently. I think it may be possible in Google's last update 
there might have been a server config change that altered their script serving 
to send the content disposition header. 

I filed a regression bug for Google Maps v2 for this to see if this is the case.
http://code.google.com/p/gmaps-api-issues/issues/detail?id=3366

Google's change log for google maps:
http://code.google.com/p/gmaps-api-issues/wiki/JavascriptMapsAPIChangelog

Here's a dev site with the problem:
http://goo.gl/qud6A

Original issue reported on code.google.com by anthony....@gmail.com on 25 May 2011 at 5:32