Caching the url in a file