Ran into an issue today where despite setting cache tags on a swf file, the chrome browser was downloading it everytime I moved from one page to other and come back to same page. This was working fine in Internet Explorer and FireFox. After spending an hour with firebug, pagespeed and fiddler I figured out that cache tags were set correctly but still chrome won't cache it. At last I found this issue reported to chrome developers http://code.google.com/p/chromium/issues/detail?id=103875 . It appears that because I was using a self signed certificate on local install, chrome wont cache any content until I use a valid certificate. So the solution is to generate a free certificate using https://www.startssl.com/ and use it locally to avoid this issue.
Here is a sample of a consumer and producer example for RabbitMQ. The steps are Download Erlang Download Rabbit MQ Server Download Rabbit MQ Java client jars Compile and run the below two class and you are done. This sample create a Durable Exchange, Queue and a Message. You will have to start the consumer first before you start the for the first time. For more information on AMQP, Exchanges, Queues, read this excellent tutorial http://blogs.digitar.com/jjww/2009/01/rabbits-and-warrens/ +++++++++++++++++RabbitMQProducer.java+++++++++++++++++++++++++++ import com.rabbitmq.client.Connection; import com.rabbitmq.client.Channel; import com.rabbitmq.client.*; public class RabbitMQProducer { public static void main(String []args) throws Exception { ConnectionFactory factory = new ConnectionFactory(); factory.setUsername("guest"); factory.setPassword("guest"); factory.setVirtualHost("/"); factory.setHost("127.0.0.1"); factory.se...
Just spent several hours diagnosing the same thing. Thanks for confirming this.
ReplyDelete