cache file is generated on initial load and it is used for the next time