This tip is helpful to stop the client from caching content.
Directions:
Open your local XML file.
This can be found in the [Magento Root]/app/etc/local.xml
Locate the follow area under the <global> node, and insert the code from line 26:
<config> <global> <install> <date>< ![CDATA[Mon, 27 Sep 2010 12:23:53 +0000]]></date> </install> <crypt> <key>< ![CDATA[demo]]></key> </crypt> <disable_local_modules>false</disable_local_modules> <resources> <db> <table_prefix>< ![CDATA[]]></table_prefix> </db> <default_setup> <connection> <host>< ![CDATA[localhost]]></host> <username>< ![CDATA[magento_user]]></username> <password>< ![CDATA[]]></password> <dbname>< ![CDATA[magento]]></dbname> <active>1</active> </connection> </default_setup> </resources> <session_save>< ![CDATA[files]]></session_save> <!-- Add the code below this line--> <session_cache_limiter>< ![CDATA[nocache]]></session_cache_limiter><!-- see http://php.net/manual/en/function.session-cache-limiter.php#82174 for possible values --> <!-- Add the code above this line--> </global>
After you save and commit your changes, clear your Magento cache for the site.
As the holiday season quickly approaches, lest we forget all that we have to be thankful for:
“I have too much to be thankful for. I can’t take anything for granted.”
-RN
“Family, friends, food and a new Muppets movie.”
-BS
“Thankful for the people at iFuel (seriously!), a new home, awesome wife, baby on the way and God’s many blessings this year.”
-RW
“I am thankful for my Mom and Dad, they raised me and they tried all their best to make me the guy that I am now. Mom and Dad- thank you very much.”
-NM
“I am thankful for my family, my Lobster, my friends, and my sisters. No matter what hardships we may face, it is important to remember all that we still have.”
-JD
If you’re running Magento on OpenSuse (or any platform for that matter), you can really benefit from turning on http compression, especially to remote areas or from hosts that have limited bandwidth.
There are a lot of references out there on this, but you have to sort of pull it all together on your own for this particular combination.
Verify that mod_deflate has been installed in Apache:
1. Open /etc/sysconfig/apache2.
2. Find the line that starts:
APACHE_MODULES=…
3. Verify that “deflate” is one of the modules listed (may not be in alphabetical order).
Now, enable compression in the virtual host file for your site:
1. Open /etc/apache2/vhosts.d/.conf.
2. Add the following lines inside the tag:
<IfModule mod_deflate.c> DeflateBufferSize 32768 DeflateCompressionLevel 5 <Location /> SetOutputFilter DEFLATE BrowserMatch ^Mozilla/4 gzip-only-text/html BrowserMatch ^Mozilla/4\.0[678] no-gzip BrowserMatch \bMSIE !no-gzip !gzip-only-text/html SetEnvIfNoCase Request_URI \.(?:gif|jpe?g|png|tiff)$ no-gzip dont-vary # Header append Vary User-Agent env=!dont-vary </Location> </IfModule>Now restart Apache using:
sudo /etc/init.d/apache2 restart
and you should be in business!
Validate that compression is working
A great, handy online site that you can use to validate that compression is working is http://www.gidnetwork.com/tools/gzip-test.php.
=============================
“e-commerce done right”
http://www.ifuelinteractive.com