How to create a clear cache button for my site?

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?

+5
source share
3 answers

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.

+7
source

, , , , . , , .

, .. this .


(css, js ..) , URL-, . , URL- , /resources/dummy/file.css /resources/file.css, dummy , . ( ), .

RewriteRule  resources/[^/]+/([^/]+)$  resources/$1
+4

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.

-1
source

All Articles