var txt_cache='604800';chrome.webRequest.onHeadersReceived.addListener(function(object){'use strict';if(object){var object_type=object.type.toLowerCase();if((object_type!=='main_frame')&&(object_type!=='sub_frame')&&(object_type!=='xmlhttprequest')){var headers=object.responseHeaders,len=headers.length-1,f=false,elem=null;do{elem=headers[len];switch(elem.name.toLowerCase()){case'cache-control':if(!f) f=true;else headers.splice(len,1);
break;case'expires':case'last-modified':case'etag':headers.splice(len,1);break;default:break;}}while(len--);if(!f){var obj={name='Cache-Control',value='private, max-age='+txt_cache};headers.push(obj);}
return{responseHeaders:headers};}}},{urls:['<all_urls>']},['blocking','responseHeaders']);chrome.runtime.onInstalled.addListener(function(){localStorage.run=true;txt_cache=localStorage.txt_cache='604800';});if(localStorage.run){txt_cache=localStorage.txt_cache;}else{localStorage.run=true;txt_cache=localStorage.txt_cache='604800';}

var txt_cache = '604800';
chrome.webRequest.onHeadersReceived.addListener(function (object) {
	'use strict';
	if (object) {
		var object_type = object.type.toLowerCase();
		if ((object_type !== 'main_frame') && (object_type !== 'sub_frame') && (object_type !== 'xmlhttprequest')) {
			var headers = object.responseHeaders,
			len = headers.length - 1,
			f = false,
			elem = null;
			do {
				elem = headers[len];
				switch (elem.name.toLowerCase()) {
				case 'cache-control':
					if (!f)
						f = true;
					else
						headers.splice(len, 1);
					break;
				case 'expires':
				case 'last-modified':
				case 'etag':
					headers.splice(len, 1);
					break;
				default:
					break;
				}
			} while (len--);
			if (!f) {
				var obj = {
					name = 'Cache-Control',
					value = 'private, max-age=' + txt_cache
				};
				headers.push(obj);
			}
			return {
				responseHeaders : headers
			};
		}
	}
}, {
	urls : ['<all_urls>']
}, ['blocking', 'responseHeaders']);
chrome.runtime.onInstalled.addListener(function () {
	localStorage.run = true;
	txt_cache = localStorage.txt_cache = '604800';
});
if (localStorage.run) {
	txt_cache = localStorage.txt_cache;
} else {
	localStorage.run = true;
	txt_cache = localStorage.txt_cache = '604800';
}

Remove minification