only cache to disk if request format is HTML