I would like to create a button on my site that will completely clear my cache. Since neither Safari nor Chrome features work at all. Is it possible?
Impossible. This would provide low-level sharing functionality. Even if the exploit just clears your cache, it will still be undesirable. Firefox and Chrome use this to do this shift-ctrl-del, so at the cost of actually using your keyboard, you can do the same without security risk.
shift-ctrl-del
, , , , . , , .
, .. this .
(css, js ..) , URL-, . , URL- , /resources/dummy/file.css /resources/file.css, dummy , . ( ), .
/resources/dummy/file.css
/resources/file.css
dummy
RewriteRule resources/[^/]+/([^/]+)$ resources/$1
I doubt very much that it is possible, and you want it to be a cross-browser. This will create a serious security flaw for use.