controljs icon indicating copy to clipboard operation
controljs copied to clipboard

Scripts with content-disposition: attachment have problems loading

Open GoogleCodeExporter opened this issue 9 years ago • 0 comments


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 [email protected] on 25 May 2011 at 5:32

GoogleCodeExporter avatar Mar 16 '15 22:03 GoogleCodeExporter