Better Way to Prevent IE Cache in AngularJS?

As described in one of my other posts, you could disable caching globally in the $httpProvider: myModule.config([‘$httpProvider’, function($httpProvider) { //initialize get if not there if (!$httpProvider.defaults.headers.get) { $httpProvider.defaults.headers.get = {}; } // Answer edited to include suggestions from comments // because previous version of code introduced browser-related errors //disable IE ajax request caching $httpProvider.defaults.headers.get[‘If-Modified-Since’] = … Read more

How to cache Google map tiles for offline usage?

If you are trying to cache the tiles that Google serves, that may be a violation of Google’s Terms of Service (unless, under certain circumstances, if you’ve purchased their enterprise Maps API Premier). That’s why gmapcatcher has it crossed off their list. See http://code.google.com/p/gmapcatcher/issues/detail?id=210. At the gmapcatcher URL above, you will also find a shell … Read more

Why is the size of L1 cache smaller than that of the L2 cache in most of the processors?

L1 is very tightly coupled to the CPU core, and is accessed on every memory access (very frequent). Thus, it needs to return the data really fast (usually within on clock cycle). Latency and throughput (bandwidth) are both performance-critical for L1 data cache. (e.g. four cycle latency, and supporting two reads and one write by … Read more