Updating offline disk cache
It’s painful to see articles that praise Application Cache’s ease of use, written by people who’ve clearly only met him in passing.
I must set the record straight: I’m here to tell you Application Cache is a douchebag.
A rather pretty lady turned to one of the shyer members of the group, introduced herself as “Dev,” and asked “So, what do you do then?
” “Oh, I’m the Local Storage” he replied, shuffling uncomfortably. I stayed silent, as I’d come to know this guy pretty well. “Hi, I’m Application Cache,” he said, as he reached over to shake Dev’s hand. No fuss, no ‘scripting’ necessary.” Yes, he did finger-quotes while saying ‘scripting.’ I’m gritting my teeth at this point, because I know he’s greatly exaggerating his abilities and the others don’t see it.
But before we delve into the code, let me tell you a true story. I was at a party, one where the guests were mostly strangers to one another.
I was part of a little huddle that was awkwardly trying to make introductions.
I’ve boiled the offline bits down to a simple demo and posted all the code on Github.
For instance, I’m writing this on a train hurtling through the data-barren plains of West Sussex. When I use data abroad I can almost hear the champagne corks popping in the offices of my network provider.
“I provide a scripting interface for text storage maintained across pages and browser sessions.” “Yeah, he’s basically a shelf! “I turn your offline experience from sucks-ass, to success. However, if I call “bullshit” on it seem like the jerk.
I felt bad for not doing anything on that completely real evening.
By reading through my own painful experiences with App Cache, you’ll know what to expect from App Cache and how to deal with it.We’re better connected than we’ve ever been, but we’re not connected.