check if cache is writeable, remove trailing slash