Forum Replies Created

Viewing 4 replies - 1 through 4 (of 4 total)
  • Forum: Fixing WordPress
    In reply to: WP Backend Caching
    Thread Starter mulinaro

    (@mulinaro)

    Hi guys,

    the caching still occurs but I think I found the error.

    – I checked with another machine => still there
    – unnecessary plugins been disabled and deleted

    I talked 3 times with my hoster, they assured there is NO server caching in use.

    It looks very much as if caching comes from browser caching which is set in htaccess.

    Hoster said its possible to exclude “wp-admin” (WP backend) from caching.

    Question:

    Could you help me out and give me the code for excluding “Wp-admin” in browser caching?

    the current code in htaccess is:

    ————-

    # BEGIN WordPress
    <IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteBase /
    RewriteRule ^index\.php$ – [L]
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule . /index.php [L]
    </IfModule>

    # END WordPress

    # Deflate Compression by FileType
    <IfModule mod_deflate.c>
    AddOutputFilterByType DEFLATE text/plain
    AddOutputFilterByType DEFLATE text/html
    AddOutputFilterByType DEFLATE text/xml
    AddOutputFilterByType DEFLATE text/css
    AddOutputFilterByType DEFLATE text/javascript
    AddOutputFilterByType DEFLATE application/xml
    AddOutputFilterByType DEFLATE application/xhtml+xml
    AddOutputFilterByType DEFLATE application/rss+xml
    AddOutputFilterByType DEFLATE application/atom_xml
    AddOutputFilterByType DEFLATE application/javascript
    AddOutputFilterByType DEFLATE application/x-javascript
    AddOutputFilterByType DEFLATE application/x-shockwave-flash
    </IfModule>

    <ifModule mod_gzip.c>
    mod_gzip_on Yes
    mod_gzip_dechunk Yes
    mod_gzip_item_include file .(html?|txt|css|js|php|pl)$
    mod_gzip_item_include handler ^cgi-script$
    mod_gzip_item_include mime ^text/.*
    mod_gzip_item_include mime ^application/x-javascript.*
    mod_gzip_item_exclude mime ^image/.*
    mod_gzip_item_exclude rspheader ^Content-Encoding:.*gzip.*
    </ifModule>

    <IfModule mod_headers.c>

    <filesMatch “.(jpg|jpeg|png|gif|ico)$”>
    Header set Cache-Control “max-age=31536000, public”
    </filesMatch>

    <filesMatch “.(css|js)$”>
    Header set Cache-Control “max-age=604800, public”
    </filesMatch>

    Header set Cache-Control “max-age=86400, public”

    </IfModule>

    Forum: Fixing WordPress
    In reply to: WP Backend Caching
    Thread Starter mulinaro

    (@mulinaro)

    Hi, thanks for your quick response.

    Will do that. What you mean by “machine”?

    Daniel

    Forum: Fixing WordPress
    In reply to: WP Backend Caching
    Thread Starter mulinaro

    (@mulinaro)

    Hi,

    1) unfortunately I don’t use any caching plugin.
    The only caching related thing are the lines I placed into my htaccess sort of one year ago:
    <IfModule mod_headers.c>
    <filesMatch “.(jpg|jpeg|png|gif|ico)$”>
    Header set Cache-Control “max-age=31536000, public”
    </filesMatch>
    <filesMatch “.(css|js)$”>
    Header set Cache-Control “max-age=604800, public”
    </filesMatch>
    Header set Cache-Control “max-age=86400, public”
    </IfModule>

    2) I already contacted my hoster of some server caching enquiries. They say that there are no such settings for my WP application…

    You have any other idea?

    Thread Starter mulinaro

    (@mulinaro)

    Hi there,

    strangely, after posting into this forum the code crap disappeared…

    Sometimes you don’t need to understand everything 🙂

    Thx again!

Viewing 4 replies - 1 through 4 (of 4 total)