• Resolved yunusrock

    (@yunusrock)


    yesterday night i did some change in public_html/wp-content/cache/autoptimize/htaccess expiry header but today in morning when I open and saw it was old code. why it got autochange

    old code:-

    ExpiresByType text/css A30672000
    ExpiresByType text/javascript A30672000
    ExpiresByType application/javascript A30672000

    new code:-

    ExpiresActive On
    ExpiresByType image/jpg “access 1 year”
    ExpiresByType image/jpeg “access 1 year”
    ExpiresByType image/gif “access 1 year”
    ExpiresByType image/png “access 1 year”
    ExpiresByType text/css “access 1 day”
    ExpiresByType text/html “access 1 day”
    ExpiresByType application/pdf “access 1 day”
    ExpiresByType text/x-javascript “access 1 day”
    ExpiresByType application/x-shockwave-flash “access 1 month”
    ExpiresByType image/x-icon “access 1 year”
    ExpiresDefault “access 1 month”

Viewing 1 replies (of 1 total)
  • Plugin Author Optimizing Matters

    (@optimizingmatters)

    when clearing AO’s cache .htaccess also gets deleted and re-written @yunusrock.

    2 remarks:
    * you can create an “autoptimize htaccess template” in /wp-content/AO_htaccess_tmpl, put whatever you want in there and AO will use that instead of its own code
    * setting ExpiresByType for anything but CSS & JS is not needed in wp-content/cache/autoptimize as there are no images or pdf’s or … in the autoptimize cache folder

    hope this clarifies,
    frank

Viewing 1 replies (of 1 total)

The topic ‘Auto change in htaccess’ is closed to new replies.