Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

static content randomly 404s #8

Open
ghost opened this issue Feb 17, 2015 · 2 comments
Open

static content randomly 404s #8

ghost opened this issue Feb 17, 2015 · 2 comments

Comments

@ghost
Copy link

ghost commented Feb 17, 2015

Sometimes when I go to the /websites extension on one of my Azure websites I just get the html page with no images, css, or js loaded. Refreshing the page doesn't resolve it. When it happens I usually try multiple things like restarting my site, clearing browser cache, etc, and sometimes it will start working. Sometimes I just try again later and it works. I'm sure there's a pattern to when it happens and what resolves it but I haven't been able to find it.
The Chrome console shows the following:

GET https://myapp.scm.azurewebsites.net/Content/css/bootstrap.css         websitelogs:9
GET https://myapp.scm.azurewebsites.net/Content/js/bootstrap.js           websitelogs:49
GET https://myapp.scm.azurewebsites.net/Content/css/jquery.dataTables.css websitelogs:10 
GET https://myapp.scm.azurewebsites.net/Content/css/thatlog.css           websitelogs:11 
GET https://myapp.scm.azurewebsites.net/Content/js/jquery-1.10.1.min.js   websitelogs:48 
GET https://myapp.scm.azurewebsites.net/Content/js/jquery.dataTables.js   websitelogs:50 
GET https://myapp.scm.azurewebsites.net/Content/js/thatlogextension.js    websitelogs:52 
GET https://myapp.scm.azurewebsites.net/Content/js/moment.min.js          websitelogs:51 
Uncaught ReferenceError: $ is not defined                                 websitelogs:134 
GET https://myapp.scm.azurewebsites.net/Content/images/logbrowser.gif 404 (Not Found)
@amitapl
Copy link
Owner

amitapl commented Feb 17, 2015

Interesting, the urls here are actually wrong they are missing /websitelogs which causes the 404.
Not sure how it gets to that state though.
Are you using a Free / Shared or Dedicated site?

@ghost
Copy link
Author

ghost commented Feb 17, 2015

It's a free site. But I think I just figured it out. The problem occurs when I leave off the trailing slash.

This works:
https://myapp.scm.azurewebsites.net/websitelogs/

This doesn't:
https://myapp.scm.azurewebsites.net/websitelogs

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant