In the following code I'm setting some variables with info about the image (like the title, URL, etc.)
location /photo {
ssi on;
ssi_last_modified on;
set $photosrc /photos/$request_basename;
set $phototitle $request_basename;
...
}
I would like to show the photo's creation date on the page. Ideally it should be in another variable…:
...
set $photodate $???;
...
but AFAICT there is no variable in NGINX that contains the last modified date. I've looked through the variable index but I couldn't find anything. Nginx automatically adds the modified date to the Last-Modified header, so it should be capable of this.
I've also tried using ssi_last_modified but according to some answers it won't work because NGINX never implemented full SSI.