Stop Chrome caching webpages

by Peanut   Last Updated October 06, 2018 17:11 PM - source

Is there anyway to stop Chrome on Android from caching webpages? If not is there either another browser that will allow this or a way to achieve the same functionality?



Answers 1


need root

go to "/data/data/com.android.chrome"

rename "cache" dir something else i.e "cache2"

create a symlink named "cache" in that folder pointing to somewhere else or null

done

I actually point the symlink to a newly created dir in the /storage partition. It gets erased every time you reboot (not with soft/hot-(re)boot). Since Chrome and other app cache can grow several hundred megabytes, I chose /storage partition so I can save space on user partition. I did the trick even with Twitter app, Maps app and other app that grow very large cache size.

These newly created dir must have set permission 771 and owner and group set to Chrome UID (10057 in my case).

I put a 11cachescript.sh into /system/etc/init.d/ to set up these folder at startup.

#!/system/bin/sh
mkdir -m 771 /storage/cache
mkdir -m 771 /storage/cache/chrome
chown 10057:10057 /storage/cache/chrome

You can also point the symlink to a non existing folder, Chrome will still work but will not save cache file anywhere. If you don't use a script like above, next reboot symlink will point to a non-existent dir, but still work.

You can delete everything inside "cache2" folder, there can be hundreds of megabytes in there!

Ju Tutt
Ju Tutt
October 06, 2018 16:21 PM

Related Questions


Cannot upload picture because browser refreshes

Updated May 28, 2015 00:04 AM

Advanced "Find in page" in Google Chrome mobile?

Updated July 02, 2018 17:11 PM

Clear cache for specific site on Chrome for Android?

Updated December 21, 2017 00:11 AM

Recovering HTML file from Chrome cache

Updated August 01, 2017 09:11 AM

Nothing will clear chrome's cache on android

Updated September 11, 2019 05:11 AM