laukstein / ajax-seo

Ajax SEO crawlable webapp framework with boosted UX

Home Page:https://lab.laukstein.com/ajax-seo

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

kiogo opened this issue · comments

I'm getting a 404 page and an error "Resource interpreted as Script but transferred with MIME type text/html". Usually happens when navigating back to a cached page.

Happens in Chrome & Safari.

Great framework by the way!

Does error appears in http://lab.laukstein.com/ajax-seo/ or on your server?
Did you use the latest code and fallow the How to use instructions?

I just tested AJAX SEO on Chrome 23.0.1271.64 m, Chrome Canary 25.0.1319.0, WebKit Nighty r131444, Safari 5.1.7 and it seems working fine.

Perhaps your server fails on PHP header api.php lines 38, 40.

Forwarding to http://stackoverflow.com/questions/3467404/chrome-says-resource-interpreted-as-script-but-transferred-with-mime-type-text seems Apache AddType application/javascript js must solve the issue.

Thank you for your suggestions.

It works most of the time locally, which makes me think it's some sort of cache issue? Seems completely random, but I am getting the issue frequently.

ajax-seo/api/about returns the correct headers.

I have the newest code running locally, however on my remote server, I'm having an issue with the latest code generating a redirect loop. The previous version of the code I had running on the remote server worked fine. I haven't been able to determine what has changed from the previous version to cause the redirect loop. Any ideas are greatly appreciated. I'm running apache 2.2.16, PHP 5.2.14

Thank you

Thanks for issue report! Perhaps this commit ba6becf might solve your issue?
Update your code with latest up-to-date code and let me know if still you have the issue with it. Before testing remember to fully clean your browser cache and to fallow How to use instructions.

I just checked on servers:

  • Apache 2.2.21, PHP 5.3.8
  • Apache 2.2.4, PHP 5.2.1
  • Apache 2.2.14, PHP 5.3.1
  • Apache 2.2.6, PHP 5.2.4

and it seems working fine.

That solved my issue. Thank you!

You are welcome!