Topic
  • 2 replies
  • Latest Post - ‏2013-02-19T11:12:29Z by operator@isabel
SystemAdmin
SystemAdmin
3908 Posts

Pinned topic Caching for GWT Applications

‏2013-01-22T09:49:39Z |
Hello,

During the past days we have been trying to cache *.cache.html urls.

I added the following lines in the httpd.conf file:

  1. GWT Cache Configuration
#
LoadModule cache_module modules/mod_cache.so
LoadModule expires_module modules/mod_expires.so
ExpiresActive On

<IfModule mod_cache.c>
LoadModule mem_cache_module modules/mod_mem_cache.so
<IfModule mod_mem_cache.c>
CacheEnable mem /
MCacheSize 4096
MCacheMaxObjectCount 100
MCacheMinObjectSize 1
MCacheMaxObjectSize 2048

<LocationMatch "nocache">
ExpiresDefault "now"
Header Set Cache-Control "public, max-age=0, must-revalidate"
</LocationMatch>
<LocationMatch ".cache.>
ExpiresDefault "now plus 1 year"
</LocationMatch>

</IfModule>

</IfModule>

Without success.

Does anybody have an idea what configuration we need to cache all *.cache.html urls, please?

Many thanks in advance!

Kind regards,

Tony Carlier
IT Specialist
IBM Global Business Services
Updated on 2013-02-19T11:12:29Z at 2013-02-19T11:12:29Z by operator@isabel
  • SystemAdmin
    SystemAdmin
    3908 Posts

    Re: Caching for GWT Applications

    ‏2013-02-07T16:42:08Z  
    Hello,

    I did some more tests specifying ExpiresByType txt/html "access plus 1 month" in the httpd.conf file.

    When I test with Chrome, I can see the following information in the Response Headers:
    cache-control: max-age=2592000
    content-language: en-US
    content-type: text/html
    date: Thu, 07 Feb 2013 16:39:43 GMT
    expires: Sat, 09 Mar 2013 16:39:43 GMT
    last-modified: Fri, 04 Jan 2013 08:42:42 GMT
    p3p: CP="NON CUR OTPi OUR NOR UNI"
    transfer-encoding: chunked
    x-old-content-length: 799217

    However,

    On the Network tab in Chrome Developer Tools, I see the real size instead of (from cache).

    Does anybody have an idea why Chrome doesn't take my page from the cache while the expiration date is within 1 month?

    Many thanks in advance!

    Kind regards,

    Tony
  • operator@isabel
    operator@isabel
    1 Post

    Re: Caching for GWT Applications

    ‏2013-02-19T11:12:29Z  
    Why don't you use the internal ESI cache instead?
    Coupled with the cache control delivered with the product I think it can be a good solution.

    Mixing IBM modes with other modules is never advise.