# Force last-modified with SSI enabled?

**URL:** <https://www.ruby-forum.com/t/force-last-modified-with-ssi-enabled/195767>\
**Category:** NGINX\
**Created:** [September 29, 2010, 8:23pm UTC](https://www.ruby-forum.com/t/force-last-modified-with-ssi-enabled/195767 "2010-09-29T20:23:10Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![craayzie](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/e47774/32.png) [@craayzie](https://www.ruby-forum.com/u/craayzie)\
**Post date:** [September 29, 2010, 8:23pm UTC](https://www.ruby-forum.com/t/force-last-modified-with-ssi-enabled/195767/1 "2010-09-29T20:23:10Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![craayzie](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/e47774/32.png) [@craayzie](https://www.ruby-forum.com/u/craayzie)\
**Post date:** [September 29, 2010, 9:02pm UTC](https://www.ruby-forum.com/t/force-last-modified-with-ssi-enabled/195767/2 "2010-09-29T21:02:25Z")

</div>

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:

> **[REDbot](https://redbot.org/?uri=http%3A%2F%2Fstatic.ak.fbcdn.net%2Frsrc.php%25)**
>
> Lint for your HTTP resources

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.

---

<div class="post-metadata">

**Author:** ![craayzie](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/e47774/32.png) [@craayzie](https://www.ruby-forum.com/u/craayzie)\
**Post date:** [September 29, 2010, 9:37pm UTC](https://www.ruby-forum.com/t/force-last-modified-with-ssi-enabled/195767/3 "2010-09-29T21:37:33Z")

</div>

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

Thanks,  
Fima

---

<div class="post-metadata">

**Author:** ![craayzie](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/e47774/32.png) [@craayzie](https://www.ruby-forum.com/u/craayzie)\
**Post date:** [September 29, 2010, 10:01pm UTC](https://www.ruby-forum.com/t/force-last-modified-with-ssi-enabled/195767/4 "2010-09-29T22:01:33Z")

</div>

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

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

Thanks,  
Fima
