A PHP Error was encountered

Severity: Warning

Message: call_user_func_array() expects parameter 1 to be a valid callback, class 'Articles' does not have a method 'dr_fetch'

Filename: libraries/Commonclass.php

Line Number: 464

Website Optimization # Tip 2 @ Pack Web Hosting
Submitted by Kirti Singh on 11/Jun/2016 11:45
Enabling browser side caching

Browser side caching can greatly impact web page rendering speed whenever there are repeat visits. Simply put. A browser would typically look into its own local cache before making a HTTP request to the server.

On Apache mod_expires needs to be installed. Now putting the following content in your .htaccess will let the browser know that this content is cachable. For different file types, different cache durations can be enabled and based on various base parameter like access time or modification time.

Below in the example implementation. And its pretty self explanatory.

################
ExpiresActive On


# expires after 7 days based on access time
ExpiresDefault A604800



# expires after 1 month based on access time
ExpiresDefault A2592000

################


Joomla
Joomla
Wordpress
WordPress
Drupal
Drupal
Magento
Magento
CakePHP
CakePHP
OSCommerce
osCommerce
IMG 6