tfw you finally figure out a bug that has had you questioning your sanity.
Month: June 2018
HTTP Cache, where have you been all my life?
Yesterday I learned about the built-in support for HTTP cache in URLSession
. How had I missed out on this? There are so many frameworks and libs out there that implement image caching systems, but this great functionality is already built into Foundation.
This post by Alexander Grebenyuk does a good job of laying it all out.
In my current project I need this to cache profile images.
Most of what I had to do to get HTTP cache working was to set the cache policy for my image requests. (Cache policy can be configured per session or per individual request.)
request.cachePolicy = .returnCacheDataElseLoad
(Note: This policy ignores validation in favor of always returning the cached value. We have a separate mechanism to signal profile image changes.)
Puzzle Complete!
Last night we finished the Charley Harper “Rocky Mountains” puzzle. (For those who might not know, this is from a series of posters commissioned by the U.S. National Park Service.)
Space bases 1987-93
Space bases 1987-93
Ice Station Odyssey Rocket
Turning the knob lowers the antenna mast and raises the rocket into launch position.
Ice Station Odyssey
Ice Station Odyssey, 1993. The Ice Planet base features large neon orange windows, two rockets, a truck/trailer, a sled, a crane for loading rockets, and a launch pad.
Bird Killer
No way am I letting him back in like this!
Puzzle Progress
Solid progress on this 1,000 piece Charley Harper print puzzle
Opernhaus Zürich
Opera time at Opernhaus Zürich
Crepecakes
When we first arrived in Switzerland last August, I couldn’t figure out where to buy baking soda/powder. So I used to make unleavened pancakes, which we jokingly dubbed “crepe-cakes”. Now my son specifically asks for them this way. (For the record, it’s “Backpulver”)