Public bug reported:

Binary package hint: apache2-common

On Dapper Server:

With memory caching enabled, CSS stylesheets are served up as text/css
some of the time and text/plain at other times. Some browsers ignore the
mime type and there is no problem. More strict browsers like Firefox
refuse to use the stylesheet if  it's mime type is reported as
text/plain. As a result, an entire site loses all of its formatting.
This bug is intermittent and difficult to reproduce, but will occur with
time given typical apache mime type and cache settings, i.e.:

apache2.conf:

TypesConfig /etc/mime.types
DefaultType text/plain


yourvirtualhost.conf:

<IfModule mod_cache.c>
  <IfModule mod_mem_cache.c>
    CacheEnable mem /
    # Cache size in kilobytes
    MCacheSize 409600
    MCacheMaxObjectCount 100
    MCacheMinObjectSize 1
    # Max object size in bytes
    MCacheMaxObjectSize 24576000
  </IfModule>
</IfModule>

<IfModule mod_expires.c>
  ExpiresActive On

  ExpiresByType text/html "access plus 1 minute"
  ExpiresByType text/css "access plus 1 day"
  ExpiresByType text/javascript "access plus 1 day"
  etc. etc.
</IfModule>

** Affects: apache2 (Ubuntu)
     Importance: Undecided
         Status: Unconfirmed

-- 
mod_mem_cache does not respect mime types
https://launchpad.net/bugs/67220

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to