disable "cache encrypted contents on disc" option
Posted by: caktus
Date: December 14, 2011 03:38PM

Is there a way to disable "cache encrypted contents on disc" option so it cannot be enabled. Or better yet, completely remove the option?

I am using km 1.5.4.

Thank you.

Charlie

~~If it ain't broke, why screw it up?~~


Re: disable "cache encrypted contents on disc" option
Posted by: JamesD
Date: December 14, 2011 07:04PM

This is not perfect as someone could remove the macro, but if they don't know to look for it . . .

SecureCache.kmm

#  K-Meleon Macros (http://kmeleon.sourceforge.net/wiki/index.php?id=MacroLanguage2)
#  
# ---------- SecureCache.kmm
# ---------- K-Meleon Macro Language turn off cache for encryped items ---------
#
# Dependencies        : main.kmm 
# Resources           : 
# Preferences         : "browser.cache.disk_cache_ssl" bool
# Version             :  1.0   2011-12-14
# Author              :  JamesD  
# --------------------------------------------------------------------------------

_SecureCache_AutoDisable {
getpref(BOOL,"browser.cache.disk_cache_ssl") ? setpref(BOOL,"browser.cache.disk_cache_ssl", false) : 0;
}

# - - - - - - - - - - - - - - - - - - - 
$OnLoad=$OnLoad."_SecureCache_AutoDisable;";
$macroModules=$macroModules."SecureCache;";

Hanlon’s razor is an eponymous adage named after Robert J. Hanlon that states: “Never attribute to malice that which is adequately explained by stupidity.”

JamesD

Re: disable "cache encrypted contents on disc" option
Posted by: caktus
Date: December 28, 2011 07:48PM

Thank you, JamesD. Works like a charm. Sorry it took me so long to reply back, I probably had thoughts of sugar plumbs slamming around in my head these past couple of weeks. So much to do and so little time, seems to be less and less time every year. Hope the Holiday Season has treated everyone at the KM Forums and SourceForge well, and hope everyone has a Happy and Prosperous New Year.smiling smiley

Charlie

~~If it ain't broke, why screw it up?~~


K-Meleon forum is powered by Phorum.