Dimitar Vouldjeff
Dimitar Vouldjeff

Reputation: 2107

Expire headers in Rails

I started using YSlow and I noticed that I haven`t got expire headers on my static files. So I did a little research what is that and how to add it and tried to turn it on from the .htaccess file. But the problem is that when I put the code in the file apache returns me a 500 error. And I started thinking that the problem is from Rails.

Do you have any ideas? Thanks in advance.

Upvotes: 0

Views: 286

Answers (2)

Cimm
Cimm

Reputation: 4775

You could try with a different server (e.g. WEBrick). Just start your app in development mode and check the headers with Firebug? In that way you can eliminate the Apache dependency for now.

Upvotes: 0

Related Questions