M
M
miolini2011-11-13 08:36:04
Nginx
miolini, 2011-11-13 08:36:04

Nginx, SSI and Last-Modified

Hello!

I wanted to do this trick with Nginx on one web service. Make the main page a static html file in which to insert all css and js dependencies using SSI to optimize loading. The rest of the data is loaded using javascript. I know it's bad for search engines. But you need to reduce the number of requests from the user. The problem is that when SSI is enabled, Nginx stops returning Last-Modified. What kills in the bud is the use of such a trick for caching and minimizing requests from the client.

Does anyone know how to make Nginx send the Last-Modified header for a static file after SSI processing?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Andrey Burov, 2011-11-13
@BuriK666

only by changing the code of nginx itself
they have written

Note that when SSI is enabled the Last-Modified and Content-Length headers are not sent.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question