Editing .htaccess

It will if you have it on your htdocs folder.

You did the right thing; like so your users will fetch the latest versions of the files already if they have the old versions cached and don’t want to clear their browser cache, though I still don’t recommend it if your assets are updated daily for example if you want to decrease the load on the server.

This should be enough, but if you suspect bots visiting your website and not actual users, I recommend you also use Cloudflare and configure it like in this guide:

Like so you should have some basis applied and make your website secure enough, but only if you have a custom domain. Oh, and you’ll also have to configure the cache there as well, as Cloudflare will bypass what you had on your .htaccess file before.

6 Likes