A method for quickly setting cache-friendly URLs