• When Minify CSS files automatically is turned on, it redirects the the css and gives it this path: /wp-content/plugins/bwp-minify/min/?f=wp-content/plugins/theme-my-login/modules/ajax/css/ajax.css,wp-content/themes/my_theme/style.css&ver=1234567890

    GTmetrix tells me that it’s “missing a cache validator”.

    This creates some loading problems for the browser.
    How can this problem be solved?

    https://wordpress.org/plugins/bwp-minify/

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author Khang Minh

    (@oddoneout)

    The plugin adds proper cache headers to minified contents, so the error report might be inaccurate.

    Can you post the full url here ?

    Thread Starter bork93

    (@bork93)

    Plugin Author Khang Minh

    (@oddoneout)

    Hmm I think something on the server is dropping the Last-Modified and/or ETag headers. Can you post your .htaccess file’s contents here ?

    Thread Starter bork93

    (@bork93)

    # 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

    # RewriteRule ^/?$ “http\:\/\/kitsch\.no\/” [R=301,L]

    ErrorDocument 400 /400.php
    ErrorDocument 401 /401.php
    ErrorDocument 403 /403.php
    ErrorDocument 404 /404.php
    ErrorDocument 500 /500.php

    # Set Cache-Control and Expires headers
    <filesMatch “\\.(ico|pdf|flv|jpg|jpeg|png|gif|swf|mp3|mp4)$”>
    Header set Cache-Control “max-age=2592000, private”
    Header set Expires “Sun, 17 July 2011 20:00:00 GMT”
    </filesMatch>
    <filesMatch “\\.(css|css.gz)$”>
    Header set Cache-Control “max-age=604800, private”
    </filesMatch>
    <filesMatch “\\.(js|js.gz)$”>
    Header set Cache-Control “max-age=604800, private”
    </filesMatch>
    <filesMatch “\\.(xml|txt)$”>
    Header set Cache-Control “max-age=216000, private, must-revalidate”
    </filesMatch>
    <filesMatch “\\.(html|htm)$”>
    Header set Cache-Control “max-age=7200, private, must-revalidate”
    </filesMatch>

    ## EXPIRES CACHING ##
    <IfModule mod_expires.c>
    ExpiresActive On
    ExpiresByType text/html “access 1 month”
    ExpiresByType application/javascript “access 1 month”
    ExpiresByType text/x-javascript “access plus 1 month”
    ExpiresByType application/x-javascript “access plus 1 month”
    ExpiresByType text/javascript “access plus 1 month”
    ExpiresByType image/jpg “access plus 1 year”
    ExpiresByType image/jpeg “access plus 1 year”
    ExpiresByType image/gif “access plus 1 year”
    ExpiresByType image/png “access plus 1 year”
    ExpiresByType text/css “access plus 1 month”
    ExpiresByType application/pdf “access plus 1 month”
    ExpiresByType text/x-javascript “access plus 1 month”
    ExpiresByType application/x-shockwave-flash “access plus 1 month”
    ExpiresByType image/x-icon “access plus 1 year”
    ExpiresDefault “access plus 2 days”
    </IfModule>
    # 480 weeks

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

    # 2 DAYS

    Header set Cache-Control “max-age=172800, public, must-revalidate”

    # 2 HOURS

    Header set Cache-Control “max-age=7200, must-revalidate”

    ## EXPIRES CACHING ##

    <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>
    Header unset ETag
    </ifModule>
    FileETag None

    <ifModule mod_headers.c>
    Header unset Last-Modified
    </ifModule>

    <IfModule mod_deflate.c>
    # Compress HTML, CSS, JavaScript, Text, XML and fonts
    AddOutputFilterByType DEFLATE application/javascript
    AddOutputFilterByType DEFLATE application/rss+xml
    AddOutputFilterByType DEFLATE application/vnd.ms-fontobject
    AddOutputFilterByType DEFLATE application/x-font
    AddOutputFilterByType DEFLATE application/x-font-opentype
    AddOutputFilterByType DEFLATE application/x-font-otf
    AddOutputFilterByType DEFLATE application/x-font-truetype
    AddOutputFilterByType DEFLATE application/x-font-ttf
    AddOutputFilterByType DEFLATE application/x-javascript
    AddOutputFilterByType DEFLATE application/xhtml+xml
    AddOutputFilterByType DEFLATE application/xml
    AddOutputFilterByType DEFLATE font/opentype
    AddOutputFilterByType DEFLATE font/otf
    AddOutputFilterByType DEFLATE font/ttf
    AddOutputFilterByType DEFLATE image/svg+xml
    AddOutputFilterByType DEFLATE image/x-icon
    AddOutputFilterByType DEFLATE text/css
    AddOutputFilterByType DEFLATE text/html
    AddOutputFilterByType DEFLATE text/javascript
    AddOutputFilterByType DEFLATE text/plain
    AddOutputFilterByType DEFLATE text/xml

    # Remove browser bugs (only needed for really old browsers)
    BrowserMatch ^Mozilla/4 gzip-only-text/html
    BrowserMatch ^Mozilla/4\.0[678] no-gzip
    BrowserMatch \bMSIE !no-gzip !gzip-only-text/html
    Header append Vary User-Agent
    </IfModule>

    #RewriteCond %{QUERY_STRING} url=(.*)
    #RewriteRule index.html %1

    ## Begin – Joomla! core SEF Section.
    #
    RewriteRule .* – [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}]
    #
    # If the requested path and file is not /index.php and the request
    # has not already been internally rewritten to the index.php script
    RewriteCond %{REQUEST_URI} !^/index\.php
    # and the request is for something within the component folder,
    # or for the site root, or for an extensionless URL, or the
    # requested URL ends with one of the listed extensions
    RewriteCond %{REQUEST_URI} /component/|(/[^.]*|\.(php|html?|feed|pdf|vcf|raw))$ [NC]
    # and the requested path and file doesn’t directly match a physical file
    RewriteCond %{REQUEST_FILENAME} !-f
    # and the requested path and file doesn’t directly match a physical folder
    RewriteCond %{REQUEST_FILENAME} !-d
    # internally rewrite the request to the index.php script
    RewriteRule .* index.php [L]
    #
    ## End – Joomla! core SEF Section.

    AddOutputFilterByType DEFLATE text/plain
    AddOutputFilterByType DEFLATE text/html
    AddOutputFilterByType DEFLATE text/xml
    AddOutputFilterByType DEFLATE text/css
    AddOutputFilterByType DEFLATE application/xml
    AddOutputFilterByType DEFLATE application/xhtml+xml
    AddOutputFilterByType DEFLATE application/rss+xml
    AddOutputFilterByType DEFLATE application/javascript
    AddOutputFilterByType DEFLATE application/x-javascript
    ExpiresActive On
    ExpiresDefault “access 1 month”
    FileETag none

    <ifModule mod_headers.c>
    Header set Connection keep-alive
    </ifModule>

    Thread Starter bork93

    (@bork93)

    Do you have a solution to this problem?

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘BWP Minify creates unefficient url for refreshing’ is closed to new replies.