Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
benatkin
on Aug 10, 2009
|
parent
|
context
|
favorite
| on:
Http-https transitions and relative URLs
DHH has a solution to this problem that I like:
http://gist.github.com/29752
It's rails code, but the concept could be ported to other languages/frameworks.
jhancock
on Aug 11, 2009
[–]
WOW!!! Why is this ever hitting the ruby process? These are static assets. The decision should be made at the http proxy (apache, nginx) not your ruby proc.
mbrubeck
on Aug 11, 2009
|
parent
[–]
This controls which URLs are included in the dynamic content. It's not serving the actual assets.
jhancock
on Aug 11, 2009
|
root
|
parent
[–]
hmmm...my mistake. ;) thanks
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search:
It's rails code, but the concept could be ported to other languages/frameworks.