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

Problem with stylesheets #8

Open
npvn opened this issue Apr 24, 2015 · 1 comment
Open

Problem with stylesheets #8

npvn opened this issue Apr 24, 2015 · 1 comment

Comments

@npvn
Copy link

npvn commented Apr 24, 2015

Hi @arunoda,

Experimenting with another package of yours :)

I use Picker to enable server-side routing for my app. The routing functionality works as expected, but there's a problem related to stylesheets:

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

It looks like the css files are not sent to client properly anymore, which is quite strange.

Here is my server-side routing implementation:
https://gist.github.com/anonymous/79e2f02e4db22d8d8890

@npvn
Copy link
Author

npvn commented Apr 24, 2015

@arunoda: I realized this issue may be related to how I structure the route path.

At the moment my path looks like this: /:shortURL. When I print out the shortURL param, I see this in server console:

1adacaee373030eab7f9aee26f9049968d7712f6.css

So properly the path /:shortURL interfered with how resources are sent from server to client.

One quick fix I can think of is changing the path to something like /go/:shortURL. However, given the context that this is a URL shortening app, it doesn't look like the ideal fix :).

And one more information: I had the similar implementation when I was using Iron Router, and I didn't encounter this problem.

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