WordPress.org

Make WordPress Core

Changes between Initial Version and Version 1 of Ticket #37889, comment 14


Ignore:
Timestamp:
10/18/2018 11:31:01 AM (2 years ago)
Author:
francishunger
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #37889, comment 14

    initial v1  
    44
    55
    6 I'm using in my .htaccess for speed optimization.
     6I'm using in my .htaccess for speed optimization:
    77
    88{{{
     
    1010}}}
    1111
    12 I had to commend it out, to make the problem go away.
     12Using the functions.php snippet as described above
    1313
    14 The functions.php technique ''adding no-cache'' didn't work for me.
     14and
    1515
    16 Putting a ''.htaccess'' into the ''wp-admin'' directory, with would set the Expires to ''access plus 0 seconds'' and overwrite the other ''.htaccess'' didn't work either.
     16putting a ''.htaccess'' into the ''wp-admin'' directory, which would set the Expires to ''access plus 0 seconds'' and overwrite the other ''.htaccess'' made the trick.
    1717
    18 The optimum solution would be, to have the frontend with long Expires and the Backend with immediate expires.
     18so the ''.htaccess'' in ''wp-admin'' looks like
     19
     20{{{
     21<IfModule mod_expires.c>
     22 ExpiresActive On
     23 ExpiresByType text/html "access plus 0 seconds"
     24</IfModule>
     25}}}