#cache (15 links)
- npm cache: the unsung hero – freeCodeCamp medium.freecodecamp.com
- https://jakearchibald.com/2016/caching-best-practices/ jakearchibald.com
Must remember. "Which is better: mylogo.1.2.gif or mylogo.gif?v=1.2? To gain the benefit of caching by popular proxies, avoid revving with a querystring and instead rev the filename itself."
- webserver - Why move your Javascript files to a different main domain that you also own? - Stack Overflow stackoverflow.com
"The problem is that once you send HTTP headers for really aggressive caching (i.e. cache me for a week or a year or forever), these files aren't ever reliably loaded from the server any more and you can't make changes/fixes to them because things will break in people's browsers.
So, what companies have to do is stage these changes and actually change the URLs of all of these files to force people's browsers to reload them. Cycling through domains like "a.imwx.com", "b.imwx.com" etc. is how this gets done.
By using a nonsense domain name, the Javascript developers and their Javascript sysadmin/CDN liaison counterparts can have their own domain name/DNS that they're pushing these changes through, that they're accountable/autonomous for.
Then, if any sort of cookie-blocking or script-blocking starts happening on the TLD, they just change from one nonsense TLD to kyxmlek.com or whatever. They don't have to worry about accidentally doing something evil that has countermeasure side effects on all of *.google.com."
- Improving app cache stevesouders.com
- Hacker News | Mobile development with HTML5 news.ycombinator.com
The linked article is fairly useless but the comments on it are good; real-world dev stories.
manifestR is a bookmarklet, which you drag to your bookmarks bar. Then, when you visit any page, you can click the manifestR button, and it will create an HTML5 appcache manifest file for that page.
- OpenDNS > Support > CacheCheck opendns.com
Check what OpenDNS customers see when they request a domain
Good stats. "If you’re using jQuery on a public-facing site, use the Google CDN to host it." But don't use latest version in production.
- Ultimate Htaccess Tutorial for .htaccess files askapache.com
Insanely obsessive htaccess gubbins.
Clever clever. "What this does is quietly redirects any files located in our \scripts\ or \css\ folders with version numbers in between the file name and the extension back to just the filename and extension."
- Return of the HTTP overhead delay - this time without a server side component - Wait till I come! wait-till-i.com
Following my post yesterday about delaying the loading of avatar images to cut down on HTTP requests I was wondering if there is a way to do this without having to resort to a server side solution.
All we need to do is designate a CSS style with multiple background-images. As your browser reads the style, it will load each image you designate in succession, thus pre-loading your images.