Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

Already on GitHub? Sign in to your account

Conditional GET for static files #353

Closed
wants to merge 1 commit into
from

Conversation

Projects
None yet
3 participants

I was having difficulties getting static files to trigger a conditional GET and tracked it down to a missing Date header. From redbot.org: "Responses without a Date aren't allowed to have Expires or Last-Modified values."

@dphiffer dphiffer I was having difficulties getting static files to trigger a condition…
…al GET and tracked it down to a missing Date header. From redbot.org: "Responses without a Date aren't allowed to have Expires or Last-Modified values."
1ab82d3

.toString() doesn't produce an acceptable date format. You're wanting to use .toUTCString().

new Date().toString() -> "Sat Sep 24 2011 22:56:02 GMT-0700 (PDT)"

Contributor

jonathanong commented Sep 13, 2013

node sets the date by default

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment