Skip navigation

Category Archives: Linux

Learn how to upgrade firefox on ubuntu to the latest version. Follow this link


What does browser caching means? Answer is save a copy of the web page  visited by the browser for a temporary period.So that any further  access to the same web page does not require the browser to repeatedly collect all the content from the webserver again.But This tends to create problem in case of Dynamic website where content tends to change in minutes time (or even in seconds time).  With browser cache enabled there might be chances that the old content is shown in the same page wheres the previous content has already been updated. There are two ways you can prevent a browser from caching a web page.

1. Meta tags

We use the following lines of htl code to prevent the browser from caching.

<meta http-equiv="expires" content="Fri, 05 Dec 2008 01:00:00 GMT"/>
<meta http-equiv="pragma" content="no-cache" />

This tells the browser that the cached copy of the we page is already  out of date. hence the on reaching this tag the browser will prevent itself from caching the page. The http-equiv=”pragma” plays the same role but is guaranteed to work on different browsers.

2. HTTP Headers

The other way around would be through the dynamic scripting language (like PHP)  header functions (Cache-Control) as shown below.HTTP 1.1 compliant browsers.

Fri, 05 Dec 2008 01:00:00 GMT');
header('Cache-Control: no-store, no-cache, must-revalidate');
header('Cache-Control: post-check=0, pre-check=0', FALSE);
header('Pragma: no-cache');

Web development is not restricted to firefox and opera only. The browser statistics says around 21% of the people in the world still use Internet explorer. So it becomes mandatory to maintain a testing environment for internet explorer when carrying out web development in Linux.

inst1It is not possible to install IE directly but there are alternative packages already available that simulates different I.E. versions on Linux. The package you need to install is IEs4Linux. And to install this we need a supporting package called Wine. This software called wine simulates the dll environment of windows thus enabling us to install window based software’s on Linux operating system. To install Wine execute the following command.

sudo apt-get install wine cabextract binfmt-support

To learn the installation of IEs4linux click here.

Follow the steps carefully and enjoy the power of Internet explorer in Ubuntu.