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
          AddOutputFilterByType DEFLATE text/html text/xml text/css text/javascript

  •  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
           AddType application/x-httpd-php .htm



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.

Friday, May 25, 2012

Life Path

Sailing on the deep sea, Hands from sky awakening me.
Blurred, sleeping eyes viewing at the destination,
Appears so blur, feels it’s impossible to achieve.
Smiling face appears above, kindling my ambition.

Dare to that smiling face, hands moves in the water,
Deadly water with crocodile, shark and wild sea creatures
No fear in heart, when wildest determination is the only matter,
All other concerns around appears to be miniature.

Wasted precious time of life comparing with others to be the right,
Accepting one is unique in their aspect and hoping the best in future.
Voices appears from sky, looking forward towards the ray of light,
Heard, hey charm! whatz your tribute to the immortal nature?

Whatz your tribute to the world, left behind,
Not more days left for the end, still asleep,
Each step taken is the new life lived to ascend,
There smiles one, looking me confused at whatz my next step!!!