Forum Replies Created

Viewing 14 replies - 1 through 14 (of 14 total)
  • Thread Starter tesmer

    (@uraniumhazee)

    You are the best. @isaumya
    Before you helped me so much this time i will help you for your plugin ??
    This problem is related with Overwrite the cache-control header for WordPress’s pages using web server rules!

    If you want to enable this, you need to add below code

      more_clear_headers 'Pragma';
        more_clear_headers 'Expires';
        more_clear_headers 'Cache-Control';
        add_header Cache-Control $wp_cf_super_cache_active;

    But when you add this nginx gives error because default nginx does not have more_clear_headers module!

    I searched help topics and some of friends have this problem
    https://www.ads-software.com/support/topic/how-to-overwrite-the-cache-control-header-on-nginx/
    @ducod

    https://www.ads-software.com/support/topic/how-to-do-the-nginx-conf-on-a-vps/
    @yellofish

    Here is the solunation:

    sudo apt install nginx-extras

    If you install this packet, 50-mod-http-headers-more-filter module adds to your nginx so without any error you can add more_clear_headers commands to your nginx conf file, and you can use Overwrite the cache-control header for WordPress’s pages using web server rules function!

    Thank you

    Thread Starter tesmer

    (@uraniumhazee)

    @isaumya

    for example my url
    https://wifisifrekirici.com/cmd/
    https://imgur.com/dKzuQ2z

    Date: Thu, 21 Oct 2021 18:03:55 GMT
    Content-Type: text/html; charset=UTF-8
    Connection: keep-alive
    vary: Accept-Encoding
    x-pingback: https://wifisifrekirici.com/xmlrpc.php
    link: <https://wifisifrekirici.com/wp-json/>; rel="https://api.w.org/"
    cache-control: s-maxage=31536000, max-age=60
    x-wp-cf-super-cache: cache
    x-wp-cf-super-cache-active: 1
    x-wp-cf-super-cache-cache-control: s-maxage=31536000, max-age=60
    x-wp-cf-super-cache-cookies-bypass: swfpc-feature-not-enabled
    x-fastcgi-cache: MISS
    CF-Cache-Status: HIT
    Age: 8286
    Last-Modified: Thu, 21 Oct 2021 15:45:49 GMT
    Expect-CT: max-age=604800, report-uri="https://report-uri.cloudflare.com/cdn-cgi/beacon/expect-ct"
    Report-To: {"endpoints":[{"url":"https:\/\/a.nel.cloudflare.com\/report\/v3?s=iG0M5S4TDnrx47XG71r2yw4f2XgmsQ4bXpbhch9ckY8MsZkyfEMspronC5DnExkOXe3wfAUTfLThQ7YdkkhD%2FOdqYx6PurjEpHzVCJSoMEx7Es3btmHK6Qc5aG27mtatuxCJGxDT"}],"group":"cf-nel","max_age":604800}
    NEL: {"success_fraction":0,"report_to":"cf-nel","max_age":604800}
    Server: cloudflare
    CF-RAY: 6a1c67c6f80e4c86-AMS
    alt-svc: h3=":443"; ma=86400, h3-29=":443"; ma=86400, h3-28=":443"; ma=86400, h3-27=":443"; ma=86400

    Too bad!
    We couldn’t detect a caching mechanism on your website.

    for example another friends site
    https://www.gulshankumar.net/install-wordpress-with-lemp-on-ubuntu-18-04/
    https://imgur.com/vIuYHwB

    Cache-Control: max-age=0, must-revalidate, no-cache, no-store
    Content-Type: text/html; charset=UTF-8
    Date: Thu, 21 Oct 2021 18:02:25 GMT
    Display: pub_site_sol
    Expires: Wed, 20 Oct 2021 18:02:25 GMT
    Pagespeed: off
    Response: 200
    Server: nginx
    Set-Cookie: ezoadgid_21206=-2; Path=/; Domain=gulshankumar.net; Expires=Thu, 21 Oct 2021 18:32:25 UTC
    Strict-Transport-Security: max-age=15724800; includeSubDomains
    Vary: Accept-Encoding
    X-Ez-Minify-Html: 9.39% 250776 / 276764
    X-Ez-Proxy-Out: true 2.3
    X-Ezoic-Cdn: Hit ds;mm;4c5a64b9b143c4844678996add44fc31;2-21206-12;b03929d4-e990-4a93-5fd6-45e24a7d7cd4
    X-Middleton-Display: pub_site_sol
    X-Middleton-Response: 200
    X-Origin-Cache-Control:
    X-Sol: pub_site
    X-Ua-Compatible: IE=edge

    Passed test.

    Why my urls take this warning
    We couldn’t detect a caching mechanism

    Thanks

    Thread Starter tesmer

    (@uraniumhazee)

    @isaumya Thank you.

    I did some tests.
    When i activate Browser cache it gave me below codes

        location ~* \.(xml|xsl)$ { add_header Cache-Control "no-cache, no-store, must-revalidate, max-age=0"; expires -1; }
    location /robots.txt { add_header Cache-Control "no-cache, no-store, must-revalidate, max-age=0"; expires -1; }
    location ~* \.(css|js|pdf)$ { add_header Cache-Control "public, must-revalidate, proxy-revalidate, immutable, max-age=2592000, stale-while-revalidate=86400, stale-if-error=604800"; expires 30d; }
    location ~* \.(jpg|jpeg|png|gif|ico|eot|swf|svg|webp|avif|ttf|otf|woff|woff2|ogg|mp4|mpeg|avi|mkv|webm|mp3)$ { add_header Cache-Control "public, must-revalidate, proxy-revalidate, immutable, max-age=31536000, stale-while-revalidate=86400, stale-if-error=604800"; expires 365d; }
    location /wp-cron.php { add_header Cache-Control "no-cache, no-store, must-revalidate, max-age=0"; expires -1; }
    location = /wp-content/wp-cloudflare-super-page-cache/wifisifrekirici.com/debug.log { access_log off; deny all; }

    It works great.

    I removed my code
    "location ~* \.(css|gif|ico|jpeg|jpg|js|png|woff|woff2)$ { expires max; log_not_found off; }
    ” from nginx blocked

    I understood well that with browser cache function, your plugin enables browser caching rules for assets such like images, CSS, scripts, etc.

    I did some tests on https://cache-checker.com/ for image links!
    Before when i use my expires max block for image this site cache-checker give “We couldn’t detect a caching mechanism on your website. error but when i activated Browser cache and added Plugins code to my nginx block it works perfect and did not give error at cache-checker.

    I did not understand something about plugin.
    I hope you can explain me.
    When i test urls in this site it gives an error
    “We couldn’t detect a caching mechanism on your website.”
    Before i get this error for image links as well but i activated Browser cache and added plugins code en it was fixed.

    What is
    Overwrite the cache-control header for WordPress’s pages using web server rules?
    Should i enable it? If i enable it i think many cache checker sites will not give error.

    I Tried to activate it but there is a problem.
    When i activate it, it gives this codes:

    Edit the main Nginx configuration file, usually /etc/nginx.conf, and enter these rules immediately after opening the http block:
    
        map $upstream_http_x_wp_cf_super_cache_active $wp_cf_super_cache_active {
            default  'no-cache, no-store, must-revalidate, max-age=0';
            '1' 's-maxage=31536000, max-age=60';
        }
                            
    Now open the configuration file of your domain and add the following rules inside the block that deals with the management of PHP pages:
    
        more_clear_headers 'Pragma';
        more_clear_headers 'Expires';
        more_clear_headers 'Cache-Control';
        add_header Cache-Control $wp_cf_super_cache_active;
                                
    Save and restart Nginx.

    There is no problem with map block because i added it to nginx/conf.d folder so nginx pull it from there because nginx have this line = include /etc/nginx/conf.d/*.conf;

    BUT big problem is more_clear_headers.
    My nginx did not recognize more_clear_headers i think i need to install this modeile but i don’t know hot to install that. Otherwise i can not success.

    Could you expleain me should i activate Overwrite the cache-control header for WordPress’s pages using web server rules? and why i get error for my all artcile URLS (not for image ones) at https://cache-checker.com/
    It says We couldn’t detect a caching mechanism on your website.

    May be if i activate Overwrite the cache-control header for WordPress’s pages using web server rules it can be fixed.

    Thanks for your helps

    Thread Starter tesmer

    (@uraniumhazee)

    One more question.
    In your plugin s-max-age = 1 year ( Cloudflare cache )

    But ?n Cloudflare page rules maximum Edge ttl is amonth minimum 2 hours.
    So ?f you set s-max-age = 1 year (or seconds) How can you ensure to stay cached files on Cloudflare more than a month?

    Thread Starter tesmer

    (@uraniumhazee)

    @isaumya hi again today i canceled this on my nginx server side.

    # location ~* \.(css|gif|ico|jpeg|jpg|js|png)$ { expires max; log_not_found off; }

    when i tested the site:
    https://www.webpagetest.org/performance_optimization.php?test=211020_BiDc43_297e5844398bb34c14cc49eefb85730a&run=1#cache_static_content

    FAILED - (No max-age or expires) - https://wifisifrekirici.com/wp-content/cache/autoptimize/css/autoptimize_be8263e234a84e013b8b1f3c5a90dbb0.css
    FAILED - (No max-age or expires) - https://wifisifrekirici.com/wp-includes/js/jquery/jquery.min.js
    FAILED - (No max-age or expires) - https://wifisifrekirici.com/wp-content/uploads/reaver-wifi-sifre-kirma.jpg
    FAILED - (No max-age or expires) - https://wifisifrekirici.com/wp-content/uploads/logo.png
    FAILED - (No max-age or expires) - https://wifisifrekirici.com/wp-content/fonts/roboto/KFOlCnqEu92Fr1MmWUlfChc4EsA.woff2
    FAILED - (No max-age or expires) - https://wifisifrekirici.com/wp-content/fonts/roboto/KFOmCnqEu92Fr1Mu7GxKOzY.woff2
    FAILED - (No max-age or expires) - https://wifisifrekirici.com/wp-content/fonts/roboto/KFOlCnqEu92Fr1MmWUlfBBc4.woff2
    FAILED - (No max-age or expires) - https://wifisifrekirici.com/wp-content/fonts/roboto/KFOmCnqEu92Fr1Mu4mxK.woff2
    FAILED - (No max-age or expires) - https://wifisifrekirici.com/wp-content/cache/autoptimize/js/autoptimize_deffc727bd3df7b09402c13124a6e20d.js
    FAILED - (No max-age or expires) - https://wifisifrekirici.com/wp-content/plugins/autoptimize/classes/external/js/lazysizes.min.js?ao_version=2.9.2
    FAILED - (No max-age or expires) - https://wifisifrekirici.com/wp-content/themes/kadence/assets/css/footer.min.css?ver=1.1.6
    FAILED - (No max-age or expires) - https://wifisifrekirici.com/wp-content/themes/kadence/assets/css/slider.min.css?ver=1.1.6
    FAILED - (No max-age or expires) - https://wifisifrekirici.com/wp-content/themes/kadence/assets/css/related-posts.min.css?ver=1.1.6
    FAILED - (No max-age or expires) - https://wifisifrekirici.com/wp-content/themes/kadence/assets/css/comments.min.css?ver=1.1.6
    FAILED - (No max-age or expires) - https://wifisifrekirici.com/wp-content/themes/kadence/assets/css/content.min.css?ver=1.1.6
    FAILED - (No max-age or expires) - https://wifisifrekirici.com/wp-content/themes/kadence/assets/css/header.min.css?ver=1.1.6
    FAILED - (No max-age or expires) - https://wifisifrekirici.com/wp-content/uploads/cropped-favicon-32x32.png
    FAILED - (15.0 minutes) - https://www.googletagmanager.com/gtag/js?id=UA-119877935-1
    WARNING - (2.0 hours) - https://www.google-analytics.com/analytics.js

    image files have not have max-age!

    But In Wp cloudflare settings max-age = 60
    Why the plugin did not add Cache-Control max-age = 60 to my images?

    Thread Starter tesmer

    (@uraniumhazee)

    @isaumya

    Hi again. Today i found something.
    I think Wp Super Cache works great but this time fastcgi cache not working.

    How i know this.

    First of all i visited a page first time
    cf-cache-status: MISS
    x-wp-cf-super-cache: cache
    x-wp-cf-super-cache-active: 1
    x-fastcgi-cache: MISS

    second test

    cf-cache-status: HIT
    x-wp-cf-super-cache: cache
    x-wp-cf-super-cache-active: 1
    x-fastcgi-cache: MISS

    WP Clouddlare super cache works
    But since adding rule cache everything, x-fastcgi-cache: always MISS WHY? I refreshed same page 3-4 times but always MISS It seems fstcgi cache not working now

    how do i get fastcgi cache to work at the same time?
    Could you please look my conf files and should i edit something there?

    Thanks

    Thread Starter tesmer

    (@uraniumhazee)

    @isaumya
    So sorry i had a issue about site.

    Could you please check again?
    This is too important for me?

    Here are the screenshots

    View post on imgur.com

    I did not change any settings in WP Cloudflare Super Page Cache plugin

    Thanks for your help

    • This reply was modified 3 years, 1 month ago by tesmer.
    Thread Starter tesmer

    (@uraniumhazee)

    Up +++

    Thread Starter tesmer

    (@uraniumhazee)

    i solved the problem.
    With new ThirstyAffiliates there is an option

    “By enabling this setting, your affiliate links won’t redirect for all the blocked bots set above and will send out a 403 forbidden error.”

    if you check this , htaccess file updates:

    Thanks

    Thread Starter tesmer

    (@uraniumhazee)

    View post on imgur.com

    i use free version of ThirstyAffiliates.
    When i change Link Prefix, the htaccess file is not updated.

    This plugin blocks google to index cloaked links.
    At the first time when i installed ThirstyAffiliates, i set a Link Prefix and Litespeed Cache perceived link prefix and created right htaccess.

    Like:
    #BEGIN Block-Bots-ThirstyAffiliates
    <IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteCond %{HTTP_USER_AGENT} (googlebot|bingbot|Slurp|DuckDuckBot|Baiduspider|YandexBot|Sogou|Exabot|facebo|ia_archiver) [NC]
    RewriteRule ^git/ – [L,F]
    </IfModule>
    #END Block-Bots-ThirstyAffiliates

    After that when i chage link prefix the file is not updated.

    After a while i changed the link prefix from /git/ to /link/ and i changed RewriteRule ^git/ – [L,F] manuelly to RewriteRule ^link/ – [L,F]

    What is the problem what do you think?

    Thanks

    Thread Starter tesmer

    (@uraniumhazee)

    I have no security plugin in my web site.
    I talked this problem to my host prrovider and they checked but there is no problem with my host.

    There is a wierd thing. :=)

    My brother has web site in the same host provider. The plugin works excellent without any error.

    I deactivated all plugins and changed to theme 2017 but it did not installed. This is so strange.

    When i visited xmlrpc.php
    “XML-RPC server accepts POST requests only.”

    What do you think please help me.

    Thanks

    Thread Starter tesmer

    (@uraniumhazee)

    i reconnected it two or three times.
    Today i rechecked. Below there is a screenshot.

    Screenshot

    • This reply was modified 6 years, 9 months ago by tesmer.
    Thread Starter tesmer

    (@uraniumhazee)

    i have a static page on my wordpress site.

    When i activate show buttons on front game, the share buttons appear.
    And this error starts…

    This is my web site:

    https://www.wifisifrekirici.com

    you can check error from here:
    https://tools.pingdom.com/#!/ewJAS5/https://www.wifisifrekirici.com/

    Thanks

    • This reply was modified 6 years, 9 months ago by tesmer.
    Thread Starter tesmer

    (@uraniumhazee)

    i tried 777 for htaccess
    i increased limits from htaccess like this

    php_value max_input_vars 5000
    php_value max_execution_time 300
    php_value post_max_size 50M
    php_value upload_max_filesize 50M

    and i used this
    define( ‘WP_MEMORY_LIMIT’, ’64M’ );

    But the problem not fixed yet.

    it is so strange.
    i have wampserver in my pc and i installed wordpress and i only set up w3 total cache plugin and it gives same error “Minify via disk is currently disabled” same again.

    I dont know whats is the problem

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