Welcome! Log In Create A New Profile

Advanced

RE: SSI and expires header

Markus Jelsma
June 26, 2012 07:34AM
We also tried using the Nginx sub module but this module as well strips away any Last-Modified header, even when we force the Last-Modified header with headers more using a perl_set subroutine returning the proper date.

Any suggestions are very welcome :)
Markus



-----Original message-----
> From:Markus Jelsma <markus.jelsma@openindex.io>
> Sent: Mon 25-Jun-2012 16:13
> To: nginx@nginx.org
> Subject: SSI and expires header
>
> Hello,
>
> We use SSI for serving a specific file but we want it to be cached by the clients for a few hours. We know SSI removes the Expires header set by the standard headers module so we wrote a small perl_set sub that returns a proper HTTP expires date in the future which we set using the headers_more module. Testing via curl -i returns and checking in the browser confirms the Expires header is set correctly. We also output a Cache-Control header.
>
> The browser, however, doesn't seem to cache the object so we must do something wrong here. I assume we also need a LastModified header but how can we force to send that header while SSI is on?
>
> Thanks,
> Markus
>
> _______________________________________________
> nginx mailing list
> nginx@nginx.org
> http://mailman.nginx.org/mailman/listinfo/nginx
>

_______________________________________________
nginx mailing list
nginx@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx
Subject Author Posted

SSI and expires header

Markus Jelsma June 25, 2012 10:14AM

RE: SSI and expires header

Markus Jelsma June 26, 2012 07:34AM

Re: SSI and expires header

James Lee July 04, 2012 05:58AM

Re: SSI and expires header

Brian Akins July 04, 2012 09:12AM

RE: SSI and expires header

Markus Jelsma July 04, 2012 09:50AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 151
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 500 on July 15, 2024
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready