Sunday, July 22, 2012
Saturday, July 21, 2012
Page speed up using .htaccess
- How to remove caching from your files. For a particular folder, you might require to remove the caching, So, you can use the following in your .htaccess to remove the cache.
FileETag None
Header unset ETag
Header set Cache-Control "max-age=0, no-cache, no-store, must-revalidate"
Header set Pragma "no-cache"
Header set Expires "Wed, 11 Jan 1984 05:00:00 GMT"
- To add expire date for your files the below code in .htaccess would help you
ExpiresActive On
ExpiresDefault A86400
ExpiresByType image/x-icon A2419200
ExpiresByType image/gif A604800
ExpiresByType image/png A604800
ExpiresByType image/jpeg A604800
ExpiresByType text/css A604800
ExpiresByType application/x-javascript A604800
ExpiresByType text/plain A604800
ExpiresByType application/x-shockwave-flash A604800
ExpiresByType application/pdf A604800
ExpiresByType text/html A900
- To enable the gziping the file, below code in htaccess would help you
- To make the htm files to work as php files, where you can add php code in html file, you can use below code in htaccess and work on it
Friday, July 6, 2012
Your Presence
It was you, whom I remember everyday,
Morning I wake, wish to have you beside,
Its just a thought of mind, which play,
With my emotions, And with dawn of day it subside,
Irritating may be, when I overtalk,
But its inner feelings, exerted in words,
Shall stop, On consent for long walk,
With me, each second shall pack in my hoards,
Few moments in life, Your presence has sparkled,
With utmost pleasure, Which would always be marked,
and silence would be abided.
Morning I wake, wish to have you beside,
Its just a thought of mind, which play,
With my emotions, And with dawn of day it subside,
Irritating may be, when I overtalk,
But its inner feelings, exerted in words,
Shall stop, On consent for long walk,
With me, each second shall pack in my hoards,
Few moments in life, Your presence has sparkled,
With utmost pleasure, Which would always be marked,
and silence would be abided.
Subscribe to:
Posts (Atom)