Site icon Cody Paste

Leverage browser caching

The browser cache is a temporary storage location on your computer for files downloaded by your browser to display websites. Files that arecached locally include any documents that make up a website, such as html files, CSS style sheets, JavaScript scripts, as well as graphic images and other multimedia content. Read here

(you can increase page loading speed by browser caching and by compressing  text, html, javascript, css, xml in .htaccess)

 

Browser caching for .htaccess

The code below tells browsers what to cache and how long to “remember” it. It should be added to the top of your .htaccess file.

 

Compress  text, html, javascript, css, xml

Add these line before cache Expires.

 

Final Code for Compression and Cache for page load speed.

🙂

Exit mobile version