No Cache Bookmarklet

I have created a Javascript bookmarklet to add _nocache to page URLs for testing purposes.


here is the code:


    java script:R = /_nocache/;if(R.exec(location.href)){location.href=location.href} else{location.href=location.href + '/_nocache' } void 0


(the board is adding a space in javascript so you'll have to remove that)

You create a new bookmark called No Cache and paste that in the location field.

It checks to see if nocache is already there are refreshes if it does. It assumes there is no extant trailing /, but a check for that could be added.

You could also make an [b]Edit Page[/b] bookmarklet be replacing _nocache with _edit and removing the else section.


cheers,
Richard