11-26-2020, 12:40 PM
As already said, the best way to improve the speed of your website is use a CDN (Content-Delivery-Network).
Cloudflare does an amazing job with its free tier, you get a auto-minify and cdn services for free.
Unfortunately Cloudflare caches only html, css, images and js files, if you need to cache a specific file such as a music (maybe you are using a background sound on the website) you must create a page rule. Moreover caching such files can get your Cloudflare account blocked.
My suggestion is to think about what are you going to use and find the best compression/quality rate, with text file such as html, css and js you can only minify such files meanwhile with sound file you can try different bitrate to get a small but good audio.
Another suggestion is to "bundle" every thing can be bundled: your own js, js library, css files to get your website ready to go in less HTTP requests!
Cloudflare does an amazing job with its free tier, you get a auto-minify and cdn services for free.
Unfortunately Cloudflare caches only html, css, images and js files, if you need to cache a specific file such as a music (maybe you are using a background sound on the website) you must create a page rule. Moreover caching such files can get your Cloudflare account blocked.
My suggestion is to think about what are you going to use and find the best compression/quality rate, with text file such as html, css and js you can only minify such files meanwhile with sound file you can try different bitrate to get a small but good audio.
Another suggestion is to "bundle" every thing can be bundled: your own js, js library, css files to get your website ready to go in less HTTP requests!