dougmoscrop / serverless-http

Use your existing middleware framework (e.g. Express, Koa) in AWS Lambda 🎉
Other
1.72k stars 166 forks source link

Response last-modified: Tue, 01 Jan 1980 00:00:00 GMT #48

Closed boyuan459 closed 5 years ago

boyuan459 commented 6 years ago

The last modified date is always last-modified: Tue, 01 Jan 1980 00:00:00 GMT, so it use caches all the time, how to change the last-modified time to real file update time

dougmoscrop commented 6 years ago

Is your application setting this header? What framework are you using?

dougmoscrop commented 5 years ago

This doesn't seem related to this library; there are dozens of tests that assert all kinds of things about the response and this header isn't added by any of my code; you should probably look in to the web framework you're using or middleware in it.

A good thing to do is just take the app, and .listen() and then interact with it via CURL - it should behave the same. If it's not, please re-open with some more details and I will try to look at it!