Forum Moderators: open

Message Too Old, No Replies

Will Googlebot cache JS after crawling it?

         

Jean_Niu

7:49 am on Jul 10, 2024 (gmt 0)

Top Contributors Of The Month



Hello, I found Googlebot with the same IP and User-Agent repeatedly crawls the same JS,1,000+ times in half an hour. For example, after a googlebot with the same IP and User-Agent crawls a page, it will crawl the js, css and other resources of the page. When it moves to another page and encounters the same js, css and other resources, will it crawl again?
Does anyone have any personal experience on whether Googlebot caches js?

Jean_Niu

7:55 am on Jul 10, 2024 (gmt 0)

Top Contributors Of The Month



[storage.googleapis.com ]
These JS are used for global rendering of the page. The JS file name will be updated as the website version changes, possibly daily/weekly

not2easy

11:35 am on Jul 11, 2024 (gmt 0)

WebmasterWorld Administrator 10+ Year Member Top Contributors Of The Month



Hi Jean_Niu and welcome to WebmasterWorld [webmasterworld.com]

Google will crawl and use the current .js files, they request the .js file the page is requesting when they crawl.

Jean_Niu

2:43 am on Jul 16, 2024 (gmt 0)

Top Contributors Of The Month



Hi, thanks for your reply firstly.
Google will crawl and use the current .js files, they request the .js file the page is requesting when they crawl.

I get it. But shouldn't Google be able to cache js? If the js file has not changed.

not2easy

2:55 am on Jul 16, 2024 (gmt 0)

WebmasterWorld Administrator 10+ Year Member Top Contributors Of The Month



Google will request the files it finds in a page so no matter what the name of the file is, they still request it because it is found on the page. I don't think it would help Google to request files not used on a page.