简体   繁体   中英

Make a Webpage Cacheable - Codeigniter Php Chrome Optimization

Im observing a very high load time on my webpage and so i decided to run this Audit on chrome to detect areas where i can improve the speed

So chrome suggested that i

The following resources are explicitly non-cacheable. Consider making them cacheable if possible:

and there are 76 file listed below that are image files , CSS , and PHP files

i want to know how do i make these file "cacheable"

Two more suggestion that are included are :

  1. There are multiple resources served from same domain. Consider combining them into as few files as possible.9 CSS resources served from localhost.

  2. There are multiple resources served from same domain. Consider combining them into as few files as possible.16 JavaScript resources served from localhost.

I wanted to know how much these 2 ^ properties will help me increase the speed of loading the site.

Please if possible do give me other options too , to make my website load faster apart from mentioned above.In dire need of help , the sites really slowed one and need to optimize the loading asap

Thank you

To concatenate and minify CSS and JS with CodeIgniter, use Carabiner .

As for caching resources, that task is usually best done by the webserver... Apache or NGINX or whatever you are running. You configure your webserver to send what's often referred to as a "far future expires header", and you can configure this by file type.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM