Results 1 to 2 of 2

Thread: apache2 caching don't work on non image files

  1. #1
    Join Date
    Jan 2008
    Beans
    40

    apache2 caching don't work on non image files

    Hello,

    I'm having problems with mods - expires/headers.

    I have set the following in apache2.conf:

    ExpiresActive on
    ExpiresDefault "access plus 1 hour"
    ExpiresByType application/javascript "access plus 1 months"
    ExpiresByType image/jpg "access plus 1 month"
    ExpiresByType image/jpeg "access plus 1 month"
    ExpiresByType image/gif "access plus 1 month"
    ExpiresByType image/png "access plus 1 month"
    ExpiresByType text/css "access plus 1 months"

    Yet all js/css files end up with 200 status and not 304 as images.

    When inspecting the response header for the js/css files, it looks good and all expatriation settings are ok ( a month to the future ).

    I there any special settings add in 14.04 for these type of files?

    Help will be appreciated...

  2. #2
    Join Date
    Jan 2008
    Beans
    40

    Re: apache2 caching don't work on non image files

    Just found out i needed to create new conf file on /etc/apache/conf-available and sudo a2enconf on it....

    I hope this understanding will help others

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •