nginx - Where should I set HTTP headers, such as Expires? -
I want to deploy an app using Sinatra on fusion passenger w / nginx. If I want to set my static content - the header ending on the stylesheets, then say - This is where it can be seen in three places where I can complete it.
- In my Syntona app, use of API
- with rack midware
- In server config for my deployment
Which of these methods is best for setting up HTTP headers?
However after answering and answering and viewing the above comment, I think I have figured out the answer to my own question.
The whole situation of nginx actually eliminates the first two options.
This option leads to option # 3 this is where all other content config sets, such as gzip compression.
Comments
Post a Comment