CodeSleeve / asset-pipeline

This Laravel 4 package provides a very simple and easy to use asset pipeline. It was heavily inspired by the Rails asset pipeline. We make use of the wonderful Assetic package to help with pre-compliation!
http://www.codesleeve.com
MIT License
489 stars 53 forks source link

nginx #51

Closed kdocki closed 10 years ago

kdocki commented 10 years ago

location ~ ^/(assets)/{ try_files $uri $uri/ /index.php?q=$uri&$args; expires max; add_header Cache-Control public; }

ivanlemeshev commented 10 years ago

Don't work on nginx, what can I do?

kdocki commented 10 years ago

@ivanlemeshev our sysadmin had to do this configuration on our nginx servers, did you try it?

ivanlemeshev commented 10 years ago

Yes, I did. Styles work, but js files don't work.

kdocki commented 10 years ago

Hmm... what do you mean by don't work? We use nginx on all our servers so we've definitely gotten this to work for sure.