gzippo icon indicating copy to clipboard operation
gzippo copied to clipboard

Should expires header also be set

Open serby opened this issue 13 years ago • 4 comments

ySlow speed is complaining about expires headers not being set.

Should gzippo have an option to set this as well as cache-control?

serby avatar Jan 04 '12 13:01 serby

It does currently set the expires header however only to one day. It is a bug and should be defaulted to one week.

tomgco avatar Jan 04 '12 13:01 tomgco

It seems that Connect doesn't implement support for the Expires header: https://github.com/senchalabs/connect/issues/410 however gzippo does for gzipped content.

tomgco avatar Jan 04 '12 14:01 tomgco

Yeah, I saw that you do it for gzipped content. But adding it to pass() before deferering to connect's staticSend would mean a few extra points on PageSpeed/ySlow.

Yet another reason to use gzippo as your static middleware!

On 4 January 2012 14:02, Tom Gallacher [email protected] wrote:

It seems that Connect doesn't implement support for the Expires header: https://github.com/senchalabs/connect/issues/410 however gzippo does for gzipped content.


Reply to this email directly or view it on GitHub: https://github.com/tomgallacher/gzippo/issues/20#issuecomment-3354820

[email protected] Chief Technology Officer

Direct: +44 2030 516115 Mobile: +44 7881 550999 Conference: +44 20 3051 6144

Clock Limited The Old School House Bridge Road, Hunton Bridge, Kings Langley, WD4 8RQ Switchboard: +44 1923 261166

www.clock.co.uk

http://twitter.com/clock http://blog.clock.co.uk/ http://delicious.com/clocklimited

www.clock.co.uk/email-disclaimer

clock.® is a Registered Trademark of Clock Limited in the European Community and other territories

serby avatar Jan 04 '12 15:01 serby

Hm, I do see expires header in current version?

mitar avatar Feb 12 '13 07:02 mitar