So my site is hosted here for about ~10 months now, and Iβve just updated it.
I moved my old site files into folder named v1, then on the root directory of htdocs is where my updated files reside.
The changes I implemented are the following:
downloaded bootstrap, jquery, swal2, etc. and saved it on a folder named Assets.
make a lot of ajax request in the background ( mainly for infinite scrolling ).
refactored my model and controller functions. (created model for each one of mysql tables so more files)
Hereβs my concern
Does making bootstrap, jquery, and other css/js that are available using CDN counts in inode/hits?
Does my old files, while not even part of my v2 route, also registers a hit/inode ?
If the files are uploaded from your site to the CDN, served entirely from the CDN, and the files donβt exist on your hosting account, then no hits or inodes will be used on your account, because all hits and inodes are handled by the CDN provider.
If the CDN simply fetches the files from your website with us, and caches and redistributes the files, then it will help to reduce your hits usage for these files (but not eliminate it, the CDN still needs to get the files from your website), and it wonβt help with inodes at all (because the files need to be stored all the same).
Inodes are the files and directories on your account. So all files on your account, even the ones which are not used, count against your inode usage.
Hits used is caused by web traffic. If the v1 files are never accessed, then they will not generate any hits usage.
Thatβs impossible to tell.
AJAX in itself is not evil. For your hits usage, it really doesnβt matter if you have infinite scrolling with AJAX or just a paginated list where you just navigate to the next page using plain HTML links.
As long as you donβt do anything obviously stupid, like code that constantly refreshes in the background, or fetches tiny scraps of data from the backend with a large number of requests, you donβt need to worry too much.