Closed hjr3 closed 5 years ago
Thanks, I published the current fixed code to npm as v3.29.6.
Thank you for the quick response and great library!
On Fri, May 17, 2019 at 21:40 falsandtru notifications@github.com wrote:
Thanks, I published the current fixed code to npm as v3.29.6.
— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/falsandtru/pjax-api/issues/40?email_source=notifications&email_token=AAAIEJXON2M2ITX6OIWCDXDPV6CEPA5CNFSM4HNYTBF2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGODVWHQAA#issuecomment-493647872, or mute the thread https://github.com/notifications/unsubscribe-auth/AAAIEJS2JRNB74ESIQMTW5TPV6CEPANCNFSM4HNYTBFQ .
I get the following error when
Cache-Control
header is not set:Example response:
Express is setting the
ETag
header but does not automatically set theCache-Control
header. The work around is to set aCache-Control
header.I believe the issue is that Cache-Control is not being defaulted to
''
on this line, but is defaulted to''
just above in the if check.