<?xml version="1.0" encoding="UTF-8"?>
<feed xmlns="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <title>Redeploying theme force the clear the browser cache</title>
  <link rel="self" href="https://liferay.dev/c/message_boards/find_thread?p_l_id=119785294&amp;threadId=11660394" />
  <subtitle>Redeploying theme force the clear the browser cache</subtitle>
  <id>https://liferay.dev/c/message_boards/find_thread?p_l_id=119785294&amp;threadId=11660394</id>
  <updated>2026-04-07T11:10:03Z</updated>
  <dc:date>2026-04-07T11:10:03Z</dc:date>
  <entry>
    <title>RE: Redeploying theme force the clear the browser cache</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=13567722" />
    <author>
      <name>Puneet Upadhyay</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=13567722</id>
    <updated>2012-04-20T11:11:16Z</updated>
    <published>2012-04-20T11:11:16Z</published>
    <summary type="html">Thanks Tomas.</summary>
    <dc:creator>Puneet Upadhyay</dc:creator>
    <dc:date>2012-04-20T11:11:16Z</dc:date>
  </entry>
  <entry>
    <title>RE: Redeploying theme force the clear the browser cache</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=11671107" />
    <author>
      <name>Tomáš Polešovský</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=11671107</id>
    <updated>2011-12-03T15:43:47Z</updated>
    <published>2011-12-03T15:43:47Z</published>
    <summary type="html">&lt;html&gt;&lt;head&gt;&lt;/head&gt;&lt;body&gt;Nilesh,&lt;br&gt;&lt;br&gt;have you turned on portal-developer.properties? Try to add into your portal-ext.properties:&lt;pre&gt;&lt;code&gt;
theme.css.fast.load=false
theme.images.fast.load=false

javascript.fast.load=true
javascript.log.enabled=false

layout.template.cache.enabled=false

browser.launcher.url=

combo.check.timestamp=true

freemarker.engine.cache.storage=soft:1
freemarker.engine.modification.check.interval=0

openoffice.cache.enabled=false

velocity.engine.resource.manager.cache.enabled=false

com.liferay.portal.servlet.filters.cache.CacheFilter=false

com.liferay.portal.servlet.filters.themepreview.ThemePreviewFilter=true&lt;/code&gt;&lt;/pre&gt;&lt;br&gt;&lt;br&gt;And check please also generated HTML in the browser, that your css' and js' contains the timestamp and the other code:&lt;br&gt;&lt;pre&gt;&lt;code&gt;/my-theme/css/my-style.css?browserId=other&amp;amp;amp;languageId=en_US&amp;amp;amp;t=1322753814000&lt;/code&gt;&lt;/pre&gt;&lt;br&gt;&lt;br&gt;Regards&lt;br&gt;-- tom&lt;/body&gt;&lt;/html&gt;</summary>
    <dc:creator>Tomáš Polešovský</dc:creator>
    <dc:date>2011-12-03T15:43:47Z</dc:date>
  </entry>
  <entry>
    <title>RE: Redeploying theme force the clear the browser cache</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=11668718" />
    <author>
      <name>Nilesh Gundecha</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=11668718</id>
    <updated>2011-12-03T06:19:52Z</updated>
    <published>2011-12-03T06:19:52Z</published>
    <summary type="html">Thanks for the reply Tomas.&lt;br /&gt;&lt;br /&gt;I need to clear the client browser cache irrespective of the which browser I am using. And it seems like this is happening only with the Custom UI Theme created.&lt;br /&gt;&lt;br /&gt;I have also set the &amp;#34;theme.css.fast.load=false&amp;#34;.&lt;br /&gt;&lt;br /&gt;Am I missing something in my custom theme. Any pointers please?&lt;br /&gt;&lt;br /&gt;Regards,&lt;br /&gt;Nilesh&lt;br /&gt;&lt;br /&gt;&lt;div class="quote-title"&gt;Tomáš Polešovský:&lt;/div&gt;&lt;blockquote&gt;Hi&lt;br /&gt;&lt;br /&gt;I don&amp;#39;t know if you use IE, but IE has these problems since I started developing (ver. 5.5?).&lt;br /&gt;&lt;br /&gt;I use Chrome (with Anonymous mode or CTRL+F5) which works well. After I&amp;#39;m finished, I test it in FF, Opera, Safari &amp;amp; IE Tester.&lt;br /&gt;&lt;br /&gt;Anyway, you can try to play with com.liferay.portal.servlet.filters.header.HeaderFilter in the portal web.xml to set Cache-control and Expire headers for all content to the past, so your browser will need to download the resources any time you visit a page.&lt;br /&gt;&lt;br /&gt;Hope it helps a bit &lt;img alt="emoticon" src="@theme_images_path@/emoticons/happy.gif" &gt;&lt;br /&gt;&lt;br /&gt;-- tom&lt;/blockquote&gt;</summary>
    <dc:creator>Nilesh Gundecha</dc:creator>
    <dc:date>2011-12-03T06:19:52Z</dc:date>
  </entry>
  <entry>
    <title>RE: Redeploying theme force the clear the browser cache</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=11668267" />
    <author>
      <name>Tomáš Polešovský</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=11668267</id>
    <updated>2011-12-02T22:10:50Z</updated>
    <published>2011-12-02T22:10:50Z</published>
    <summary type="html">Hi&lt;br /&gt;&lt;br /&gt;I don&amp;#39;t know if you use IE, but IE has these problems since I started developing (ver. 5.5?).&lt;br /&gt;&lt;br /&gt;I use Chrome (with Anonymous mode or CTRL+F5) which works well. After I&amp;#39;m finished, I test it in FF, Opera, Safari &amp;amp; IE Tester.&lt;br /&gt;&lt;br /&gt;Anyway, you can try to play with com.liferay.portal.servlet.filters.header.HeaderFilter in the portal web.xml to set Cache-control and Expire headers for all content to the past, so your browser will need to download the resources any time you visit a page.&lt;br /&gt;&lt;br /&gt;Hope it helps a bit &lt;img alt="emoticon" src="@theme_images_path@/emoticons/happy.gif" &gt;&lt;br /&gt;&lt;br /&gt;-- tom</summary>
    <dc:creator>Tomáš Polešovský</dc:creator>
    <dc:date>2011-12-02T22:10:50Z</dc:date>
  </entry>
  <entry>
    <title>Redeploying theme force the clear the browser cache</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=11660393" />
    <author>
      <name>Nilesh Gundecha</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=11660393</id>
    <updated>2011-12-02T04:32:04Z</updated>
    <published>2011-12-02T04:32:04Z</published>
    <summary type="html">Hi All,&lt;br /&gt;&lt;br /&gt;Every time I do the changes to the UI theme and redeploy it in server, I am required to clear the browser cache to view the clean UI. If I dont clear the cache, then the UI looks disturbed. How can I stop this?&lt;br /&gt;&lt;br /&gt;Regards,&lt;br /&gt;Nilesh</summary>
    <dc:creator>Nilesh Gundecha</dc:creator>
    <dc:date>2011-12-02T04:32:04Z</dc:date>
  </entry>
</feed>
