Force last-modified with SSI enabled?

Is there a way to get nginx to send a last-modified of the “master”
object
when SSI is enabled outside of the: add_header Last-Modified “blah”
directive? Open to any and all work arounds.

Thanks in advance.

Fima

Sorry that it’s completely different of what you expect but I offer to
not use it at all in this case.

My workaround is to send Expires header and Cache-Control: max-age.
IMO this is good enough without making complicated work to answer with
“last modified”.

Or send real “old one” like Facebook does:
http://redbot.org/?uri=http%3A%2F%2Fstatic.ak.fbcdn.net%2Frsrc.php%
2FzEX21%2Fhash%2F75j4m1ms.png

There is no good in sending “actual” last modified timestamp to client.
It was designed to make intellectual caching but only makes things
confusing.

Alex.

Will browsers send an If-Modified when an Expires is set? Hm … need to
take
a look.

Thanks,
Fima

Looks like browsers won’t send If-Modified-Since unless a Last-Modified
is
set :frowning:

Will look at using Apache for this particular sub-set of content.

Thanks,
Fima

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs