public dir cache handling