prismicio/php-kit — pull request #64 by vancromp (2014-07-15 09:24:16+00:00)
Title: ttl vs absolute timestamp

Hello,

I think there is a little problem at line 258.
The third argument of cache->set() is a ttl, so $expiration must be set to a ttl, and not to a absolute timestamp. This can lead to caching problems, because ttl is set to 2014 - 1970 + 10 years (from cache-control header) = 54 years, that is a too high ttl for some caching systems.

Cheers,

Pierre