Step 5: Transfer external resources.
When possible, move external resources to your own server so that you can control the Expires header (this will instruct the browser to cache the resource for a longer period of time). For example, we moved our Facebook pixel to our own server and cached it for 14 days. This means you will be responsible for checking for updates periodically, but it can improve your page speed.
For example, on our Private Equity Interview Questions page it is possible to see how the fbevents.js file is being loaded from our server and the Cache Control HTTP header is set to 14 days (1209600 seconds).
Step 6: Use a Content Delivery Network (CDN)
What is a CDN? ۔
I استعمال کرنے کی سفارش کرتے ہیں۔Cloudflare because it makes belize number data tasks much easier and faster than if you were trying to do them on your own server. Here's what we did specifically on the Cloudflare configuration:
Enable HTTP/2 - You can read more about this topic here.
Currently, no browser supports HTTP/2 over unencrypted connections. For practical purposes, this means that your website must be served over HTTPS to take advantage of HTTP/2. Cloudflare has a free and easy way to enable HTTPS. Check it out here .
Select Enable+0RTT – more about this topic here .
Step 7: Use service workers.
Service workers give site owners and developers some interesting options (like push notifications), but in terms of performance, we're most excited about how these workers can help us build a better caching system.
To learn how to get service workers up and running on your site, see this page .
With resources (images, CSS, JavaScript, fonts, etc.) cached by a service worker, returning visitors will often be served much faster than if there were no worker.
Cache control: public, max
-
- Posts: 325
- Joined: Tue Jan 07, 2025 4:32 am