简体   繁体   中英

How to cache my website from the server side

Is there a way i can put my website in cache by default on all the browsers from the server side?

I have a large website that i don't need to reload most of it's components once it is accessed. I rad many articles about javascript caching files but i prefer to find a more progressive way like enabling some features on my server. I hope you can help.

Try this:

http://www.feedthebot.com/pagespeed/leverage-browser-caching.html

It's basically using .htaccess file that should be on your root directory and it "tells" the server what should and how long a component to be cached.

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