FC0.7.2 and Chrome Error (Resource interpreted as Script but transferred with MIME type text/plain)

freshjonesfreshjones Member
in Help edited June 2014
Hi guys,

I just noticed this issue in Chrome on my 0.7.2 store. I am using the raw foxycart js file on my checkout page because I am combinign it with all my other js files and minifying everything into one single resource, but I receive the following error from chrome's javascript console stemming from the file: http://cdn.foxycart.com/MYDOMAIN/foxycart.raw.js

Resource interpreted as Script but transferred with MIME type text/plain

particulary line 101 where cart.php is being called through getJSON.

Shouldn't it be returning a text/javascript mime type from your end? or could you help me determine what the issue might be? below is an output of the headers from that cart.php get request called through jquery.getJSON.

Thanks for any help you can offer

Remote Address:
Request URL:https://ctcdev.foxycart.com/cart.php?cart=get&output=json&fcsid=iquknj96inc3lsfjkgqitu90a2&callback=jQuery164000422213040292263_1401892191576&_=1401892191606
Request Method:GET
Status Code:200 OK
Request Headersview source
Accept:*/*
Accept-Encoding:gzip,deflate,sdch
Accept-Language:en-US,en;q=0.8
Cache-Control:no-cache
Connection:keep-alive
Cookie:optimizelyEndUserId=oeu1401890230377r0.04819049499928951; _sio=7e92d764-0403-490f-9b86-2b88117584be----; km_ai=NcxqiTM%2F%2B1Eqt9WcRfR2%2BZYVtYo%3D; optimizelySegments=%7B%7D; optimizelyBuckets=%7B%7D; ajs_group_id=null; ajs_user_id=null; kvcd=1401890244996; km_lv=x; km_uq=; __utma=91412365.1641813119.1401890168.1401890168.1401890244.2; __utmc=91412365; __utmz=91412365.1401890244.2.2.utmcsr=google|utmccn=(organic)|utmcmd=organic|utmctr=(not%20provided); mp_c110a85f5b3d6b4e31c0228242e428ac_mixpanel=%7B%22distinct_id%22%3A%20%22146672a605f498-0c5ef25da-19154453-232800-146672a60608e0%22%2C%22%24initial_referrer%22%3A%20%22%24direct%22%2C%22%24initial_referring_domain%22%3A%20%22%24direct%22%7D; fcsid=iquknj96inc3lsfjkgqitu90a2
Host:ctcdev.foxycart.com
Pragma:no-cache
Referer:http://ctc.stagedsites.com/inquiries/checkout/
User-Agent:Mozilla/5.0 (Macintosh; Intel Mac OS X 10_9_3) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/35.0.1916.114 Safari/537.36
Query String Parametersview sourceview URL encoded
cart:get
output:json
fcsid:iquknj96inc3lsfjkgqitu90a2
callback:jQuery164000422213040292263_1401892191576
_:1401892191606
Response Headersview source
Cache-Control:no-store, no-cache, must-revalidate, post-check=0, pre-check=0
Connection:close
Content-Encoding:gzip
Content-Length:262
Content-Type:text/plain
Date:Wed, 04 Jun 2014 14:29:51 GMT
Expires:Thu, 19 Nov 1981 08:52:00 GMT
P3P:CP="NOI ADM DEV PSAi COM NAV OUR OTRo STP IND DEM"
Pragma:no-cache
Set-Cookie:fcsid=iquknj96inc3lsfjkgqitu90a2; path=/; HttpOnly
Vary:Accept-Encoding





Comments
  • fc_adamfc_adam FoxyCart Team
    @freshjones,

    Good catch. It's more of a warning and shouldn't have any ramifications on the execution of the script at all, but that is something that we fixed in version 1.0 and newer - so if you upgrade, that warning won't be present anymore.
Sign In or Register to comment.