Uploaded image for project: 'jboss.org'
  1. jboss.org
  2. ORG-360 Release steps - 3.3.3
  3. ORG-367

Set Cache-Control for /theme in Apache

XMLWordPrintable

    • Icon: Sub-task Sub-task
    • Resolution: Duplicate
    • Icon: Medium Medium
    • 3.3.3
    • 3.3.3
    • None
    • None

      1. [D] Add in file: /etc/httpd/conf/vhosts/www.jboss.org-common/www.jboss.org-config.conf
      <Directory /services/web/www.jboss.org/htdocs/theme>
      ExpiresActive On
      ExpiresDefault "access plus 2 days"
      #Header append Cache-Control "public"
      <FilesMatch "(superfish-with-deps-search-.\.js|allinone-.\.js)">
      ExpiresDefault "access plus 1 years"
      </FilesMatch>
      </Directory>
      2. [D] /etc/init.d/httpd reload
      3. [L] Test Cache-Control http attribute for these files:
      http://jboss.org/theme/js/common/superfish-with-deps-search-20091201.js - max-age=31536000
      http://jboss.org/theme/js/magnolia/allinone-20091204.js - max-age=31536000
      http://www.jboss.org/theme/css/magnolia/main.css - max-age=172800

            Unassigned Unassigned
            lkrzyzan@redhat.com Libor Krzyžanek
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved: