Foros de discusión

Custom portlets fails with mod_expires directives

Javier Gutiérrez, modificado hace 7 años.

Custom portlets fails with mod_expires directives

New Member Mensajes: 2 Fecha de incorporación: 8/02/12 Mensajes recientes
Hi guys!

I am tunning my website and looked and strange behavior.

In order to improve the "Leverage browser caching", in my webserver (an IHS server) I added in the "httpd.conf" the next directives:

<IfModule mod_expires.c>
ExpiresActive on
ExpiresDefault "access plus 1 month"
ExpiresByType image/jpg "access plus 15 days"
ExpiresByType image/png "access plus 15 days"
ExpiresByType image/gif "access plus 15 days"
ExpiresByType image/jpeg "access plus 15 days"
ExpiresByType text/css "access plus 1 month"
ExpiresByType text/javascript "access plus 1 month"
ExpiresByType application/x-javascript "access plus 1 month"
ExpiresByType application/javascript "access plus 1 month"

# Para incluir fuentes WOFF (Web Open Font Format)
ExpiresByType application/font-woff "access plus 1 month"
ExpiresByType application/x-font-woff "access plus 1 month"
ExpiresByType font/woff "access plus 1 month"

</IfModule>


When I navigate in my liferay application (builded with custom portlets), they behave strangely.

For example, I have in a portlet a "value" for example 50, in the page "A". I navigate to a page "B"and here (in other portlet), I make and operation, add 1 to the "value". When I return to the page "A" I hope that the value will be 51, but I looked the initial value, 50. Until I typed "F5" to update the page, is when I looked the modified value, 51.


When I quit the Expire directives in my httpd.conf and restart the IHS service, I tested my liferay application and the strange behavior dissappears.

Do you have any idea?

Thanks.