rs / SDURLCache

URLCache subclass with on-disk cache support on iPhone/iPad
MIT License
798 stars 247 forks source link

expirationDateFromHeaders had trouble with Cache-Control + max-age #19

Closed skydivedan closed 13 years ago

skydivedan commented 13 years ago

Changed "expirationDateFromHeaders" beacuse it was miscalculating the expiration date when "Cache-Control" and "max-age" were set. It was adding max-age to the current time, not the time previously established as "now".

rs commented 13 years ago

Thx