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.

  1. In my Syntona app, use of API
  2. with rack midware
  3. 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

Popular posts from this blog

sql - dynamically varied number of conditions in the 'where' statement using LINQ -

asp.net mvc - Dynamically Generated Ajax.BeginForm -

Debug on symbian -