Sponsor:

Server and Web Integrator
Link:
Kloxo-MR logo
6.5.0 or 7.0.0
Click for "How to install"
Donation/Sponsorship:
Kloxo-MR is open-source.
Donate and or Sponsorship always welcome.
Click to:
Click Here
Please login or register. 2024-04-28, 13:09:33

Author Topic: Leverage browser caching  (Read 1695 times)

0 Members and 1 Guest are viewing this topic.

Offline dacapel

  • Valuable Member
  • *
  • Posts: 84
  • Karma: +0/-0
    • View Profile
Leverage browser caching
« on: 2016-01-08, 11:57:49 »
hi

i would like in improve Leverage browser caching of my nginx, but i dont see how make, i read to put this code in vhost?

location ~* \.(js|css|png|jpg|jpeg|gif|ico)$ {
expires 1y;
log_not_found off;
}

thanks

Offline MRatWork

  • Administrator
  • The Elite
  • *****
  • Posts: 15,807
  • Karma: +119/-11
  • Gender: Male
    • View Profile
    • MRatWork Forum
Re: Leverage browser caching
« Reply #1 on: 2016-01-08, 14:25:11 »
Copy /etc/configs/nginx/conf/globals/generic.conf to custom.generic.conf, add your code to custom.generic.conf and then run 'sh /script/fixweb; sh /script/restart-web -y'.
..:: MRatWork (Mustafa Ramadhan Projects) ::..
-- Server/Web-integrator - Web Hosting (Kloxo-MR READY!) --

Offline dacapel

  • Valuable Member
  • *
  • Posts: 84
  • Karma: +0/-0
    • View Profile
Re: Leverage browser caching
« Reply #2 on: 2016-01-09, 09:44:17 »
ok thanks!

 


Top 4 Global Search Engines:    Google    Bing    Baidu    Yahoo

Page created in 0.081 seconds with 22 queries.

web stats analysis