Vista combinada Visión Plana Vista de árbol
Discusiones [ Anterior | Siguiente ]
toggle
Nilesh Gundecha
Redeploying theme force the clear the browser cache
1 de diciembre de 2011 20:32
Respuesta

Nilesh Gundecha

Ranking: Regular Member

Mensajes: 196

Fecha de incorporación: 30 de noviembre de 2009

Mensajes recientes

Hi All,

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?

Regards,
Nilesh
Tomas Polesovsky
RE: Redeploying theme force the clear the browser cache
2 de diciembre de 2011 14:10
Respuesta

Tomas Polesovsky

LIFERAY STAFF

Ranking: Liferay Master

Mensajes: 644

Fecha de incorporación: 13 de febrero de 2009

Mensajes recientes

Hi

I don't know if you use IE, but IE has these problems since I started developing (ver. 5.5?).

I use Chrome (with Anonymous mode or CTRL+F5) which works well. After I'm finished, I test it in FF, Opera, Safari & IE Tester.

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.

Hope it helps a bit emoticon

-- tom
Nilesh Gundecha
RE: Redeploying theme force the clear the browser cache
2 de diciembre de 2011 22:33
Respuesta

Nilesh Gundecha

Ranking: Regular Member

Mensajes: 196

Fecha de incorporación: 30 de noviembre de 2009

Mensajes recientes

Thanks for the reply Tomas.

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.

I have also set the "theme.css.fast.load=false".

Am I missing something in my custom theme. Any pointers please?

Regards,
Nilesh

Tomáš Polešovský:
Hi

I don't know if you use IE, but IE has these problems since I started developing (ver. 5.5?).

I use Chrome (with Anonymous mode or CTRL+F5) which works well. After I'm finished, I test it in FF, Opera, Safari & IE Tester.

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.

Hope it helps a bit emoticon

-- tom
Tomas Polesovsky
RE: Redeploying theme force the clear the browser cache
3 de diciembre de 2011 7:44
Respuesta

Tomas Polesovsky

LIFERAY STAFF

Ranking: Liferay Master

Mensajes: 644

Fecha de incorporación: 13 de febrero de 2009

Mensajes recientes

Nilesh,

have you turned on portal-developer.properties? Try to add into your portal-ext.properties:
 1
 2theme.css.fast.load=false
 3theme.images.fast.load=false
 4
 5javascript.fast.load=true
 6javascript.log.enabled=false
 7
 8layout.template.cache.enabled=false
 9
10browser.launcher.url=
11
12combo.check.timestamp=true
13
14freemarker.engine.cache.storage=soft:1
15freemarker.engine.modification.check.interval=0
16
17openoffice.cache.enabled=false
18
19velocity.engine.resource.manager.cache.enabled=false
20
21com.liferay.portal.servlet.filters.cache.CacheFilter=false
22
23com.liferay.portal.servlet.filters.themepreview.ThemePreviewFilter=true


And check please also generated HTML in the browser, that your css' and js' contains the timestamp and the other code:
1/my-theme/css/my-style.css?browserId=other&languageId=en_US&t=1322753814000


Regards
-- tom
Puneet Upadhyay
RE: Redeploying theme force the clear the browser cache
20 de abril de 2012 4:11
Respuesta

Puneet Upadhyay

Ranking: Regular Member

Mensajes: 234

Fecha de incorporación: 22 de octubre de 2011

Mensajes recientes

Thanks Tomas.