• Resolved atutrabajo

    (@atutrabajo)


    Hello (Yes, me. Again:). But this time, in addition to a “problem” a suggestion. Here it goes;
    – In my previous presentation (and to “sum up”) I told you that…
    …”if I go to my site in a “normal” window, my site looks like this” (HORRIBLE)…
    To which (also to “summarize”), you told me that…
    …”That full refresh or restart of the browser is needed. The reason for this is that the browser also has a cache and once the content is changed or any files with different strings they need to be refreshed in the browser, which means that the browser needs to search for new files.”…
    Well, and, as we say around here “a button is enough for a sample”… I tell you that… It is NOT working!
    Goes sign (*):
    (*) Please, so that what I am trying to explain is understood, you should enter in a NORMAL window (where it does NOT work) and then – only later – in an incognito window (where it does work).
    1) This is a page I JUST created (in fact it is NOT finished yet); my-site/how-to-create-your-personal-brand/ (obviously you have to complete the link because, if I put it in, the system rejects it:(
    Anyway. let’s keep going…
    2) If you notice, within the content, there are 2(two) custom links.
    2.1) One that says…”Course: How to create your personal brand (See offer)”…
    2.2) The other one that says…”review list”…
    3) Both links are customized with the following CSS code
    /* Custom CSS for Links */
    a.orange-over:link {
    font-weight: 700;
    color: #ef8f1d;
    text-decoration: none
    }
    a.orange-over:hover {
    font-weight: 700;
    Colour: #1177cc;
    text-decoration: underline;
    }
    a.orange-over:visited {
    font-weight: 700;
    Colour: #1177cc;
    text-decoration: underline;
    }
    a.orange-over:active {
    font-weight: 700;
    color: #ef8f1d;
    text-decoration: none
    }
    Surely you will realize that, then, what would have to happen is that;
    3.1) When you just enter to visit the page, it has to have the color #ef8f1d
    So far, all ok.
    3.2) When you “stop” on the link (hover), it should change to the color #1177cc
    This is (also) Ok.
    3.3) When you click to visit the linked page (visited) the color should be #1177cc
    And so far so good. But…
    3.4) As soon as you click on the link, it SHOULD RETURN TO THE original COLOR (ie the active color should be #ef8f1d).
    And yet (when you enter a normal window as any visitor does/would), the link color “sticks” to #1177cc
    But the “worst” thing is that it is NOT updated even when I refresh the browser (which is something that the “normal” visitor will not do. But hey!)
    What’s more, the only way I have to (in a normal window) that link return to its original color (#ef8f1d) is by DELETING ALL NAVIGATION DATA.
    With which – again – I have to re-enter the data of each of the 5 email accounts that I manage, my facebook profile, twitter, etc, etc.
    And this – now if – DOES NOT happen if I access said page in an incognito browser (Something that – on the other hand – a “normal” visitor will NEVER do).
    Things to add to your analysis:
    a) I already restarted the browser (Chrome) + cleaned (several times) the caches + etc
    b) It happens to me with ALL the new CSS that I am creating
    In fact. If you look at the bottom, there is a box “enclosing” an image + 1 link + 1 text + 1 button.
    And said box, was created from the following CSS code
    #Table 1{
    margin: 18px 0 18px 0;
    width: 750px;
    border: 1px solid #1177CC;
    padding: 18px;
    background-color: #ECECEC;
    }
    Which, I created while I had W3TC disabled (To go modifying it until I find the “perfect” setting). But…
    AS SOON AS I ACTIVATED W3TC IT DISAPPEARED!
    So, after freaking out what happened (and turning W3TC on/off) I had to include #table1 in the W3TC CSS minify exception list!
    And it also happened to me with the manual links in the footer (the ones that say my phone number and connect you to my “About me”).
    But in this case, I could NOT solve it.
    And that – also – I tried everything.
    For example:
    – I changed Minize to:
    Just minimize…
    But this made the links to be fixed but, it messed up other things (For example the opening arrows of the menus).
    – I changed to “Minimize and Merge”…
    But this “solution” had NO effect at all.
    So I left it as it is currently (Just Merge + Manage @import: Bubble)
    And – quite simply – I applied to those links the same CSS that I described to you at the beginning (*)
    (*) Which have the same “problem” that I described to you at the beginning.
    c) Just in case, here are my W3TC numbers (*)
    (*) Obviously what is checked is activated. What doesn’t, doesn’t:)
    1) Page Cache: Enable
    Page Cache Method: Disk: Basic
    2) Browser Cache: Enable
    3) Page Cache: General
    ? Cache the ticket page
    Do not cache the home page
    ? Caching feeds: site, categories, tags, comments
    ? Cache SSL (HTTPS) requests
    ? Cache URIs with query string variables
    Cache 404 pages (not found)
    ? Do not cache pages for connected users
    Do not cache pages for the following user roles
    3.1) Cache preload
    ? Automatically prioritize page cache
    Refresh interval: 1800 seconds
    Pages per interval: 10
    Sitemap URL: ***/sitemap_index.xml
    ? Preload the post cache upon publish events
    4) Browser Cache: General
    ? Set last modified header
    ? Set header expiration
    ? Set header control cache
    ? Set Entity Tag (ETag)
    ? Set W3TC Full Cache Header
    ? Enable HTTP compression (gzip)
    Enable HTTP compression (brotli)
    Prevent caching of objects after changing settings
    Remove query strings from static resources
    Cache exception list:
    do not set cookies for static files.
    Removes the Set-Cookie header for responses.
    Do not process 404 errors for static objects with WordPress
    404 Error Exception List
    Rewrite the URL structure of the objects
    4.2) CSS & JS
    ? Set Last-Modified header
    ? Set header expiration
    Header expiration: 15552000 seconds
    ? Set header control cache
    Cache control policy: cache with maximum time and validation (“max-age=EXPIRES_SECONDS, public, must-revalidate, proxy-revalidate”
    ? Set entity tag (eTag)
    ? Set the W3 full cache header
    ? Enable HTTP compression (gzip)
    Enable HTTP (brotli) compression
    Prevent caching of objects after settings have been changed
    Remove query strings from static resources
    Disable cookies for static files
    4.3) HTML & XML
    ? Set Last-Modified header
    ? Set header expiration
    Header expiration: 3550 seconds
    ? Set header control cache
    Cache control policy: cache with maximum time (“public, max-age=EXPIRES_SECONDS”)
    ? Set Entity Tag (ETag)
    ? Set the W3 full cache header
    ? Enable HTTP compression (gzip)
    Enable HTTP (brotli) compression
    4.4) Media and Other Files
    ? Set Last-Modified header
    ? Set header expiration
    Header expiration: 15552000 seconds
    ? Set header control cache
    Cache control policy: cache with maximum time (“public, max-age=EXPIRES_SECONDS”)
    ? Set Entity Tag (ETag)
    ? Set the W3 full cache header
    ? Enable HTTP compression (gzip)
    Enable HTTP (brotli) compression
    Prevent caching of objects after settings have been changed
    Remove query strings from static resources
    Disable cookies for static files
    To finish a couple of things:
    – Although (as you can see), I have GZip compression enabled (both through W3TC and from my own hosting) and, in online tools where I made checks like this; https://ibb.co/1QMRfYQ
    Everything indicates that I have everything compressed, according to Pingdom Tools…
    https://ibb.co/NpbHBWz
    My site… Has 0 compression!
    Do you know what could be causing this?
    – Just in case. The same goes for understanding brotli.
    Yes indeed. It is NOT enabled in W3TC. But yes in Cloudflare.
    Lastly, and taking into account all of the above…
    – Do you have any idea if I’m doing something wrong?
    I await your comments.
    From already thank you very much.
    Greetings.
    Another yes, I say.
    I forgot to tell you 2 (two) things (in case you want to incorporate them into your analysis of the case):
    1) On my site, I have this code installed in my function.php…
    /* 10) Remove unnecessary query script tags and style sheets in the header */
    function _remove_script_version( $src ){
    $parts = explode( ‘?’, $src );
    returns $parts[0];
    }
    add_filter(‘script_loader_src’, ‘_remove_script_version’, 15, 1);
    add_filter(‘style_loader_src’, ‘_remove_script_version’, 15, 1);
    Which, you will surely notice, what it does is remove the versions of the CSS and JS files.
    This is because I “hate” seeing WordPress (or whoever) add versions to my files all the time.
    And because, as I could read somewhere, that helps to optimize (speed up) my site.
    2) On my Cloudflare I have… caching
    Setting
    Browser Cache TTL: Respect Existing Headers
    Does it have something to do with the problem I raised?
    Thanks again.

    The page I need help with: [log in to see the link]

Viewing 12 replies - 1 through 12 (of 12 total)
  • Plugin Contributor Marko Vasiljevic

    (@vmarko)

    Hello @atutrabajo

    Thank you for reaching out and for sharing the information.
    Can you please share the URL of the page you are having issues with?
    What you can do is to enable the option “Prevent caching of objects after settings change” in Performance>Browser Cache. This will add the random query string to static files ?xNNNNN. If for some reason you change the content of the CSS and JS files, the browser needs to fetch a new updated version of the file. If the filename is the same, the Browser will check for the file, it will see that the filename is the same, and will not update the existing cached file in the browser. This is where the option Prevent caching of objects after settings change comes to the rescue. Once you change the file content, simply click the “Update Media query string” button in the Browser Cache settings, and this will generate a new query string which will force the browser to get the updated version of the file since the filename is changed.

    Make sure to save all settings and purge the cache once you make the necessary changes.

    Thanks!

    Thread Starter atutrabajo

    (@atutrabajo)

    Hello. Thanks for answering.
    I followed ALL your directions, and the “result” is WORSE.
    For example:
    The site in question (https://stage9.atutrabajo.org/) in a “normal” window, looks like this;
    https://ibb.co/jWw3sMj
    When in reality, it should look like this;
    https://ibb.co/hR69HS4
    As seen in an incognito window.
    That is, with the counters COUNTING (even the last one, up to 14000000).
    And as for the custom links that I mentioned, in a normal window, they still look like this;
    https://ibb.co/m5vDP8R
    When, in reality, they should look like this;
    https://ibb.co/bXpjPQp
    As can be seen in an incognito browser.
    That is, with the links of my phone and my “About Me” in its ORIGINAL color.
    And this happens with ALL custom links.
    That is, until I go to Chrome/More tools/Clear browsing data…
    The problem is NOT resolved!
    And when I do the latter, I have to re-enter all my passwords to all my accounts: Gmail/Yahoo/Faceboo/Twitter/Etc.
    Finally. You will know how to understand that I can do it because I dedicate myself to this, heh.
    And you will also understand that, NO visitor is going to enter my site from an incognito window, much less, is going to be updating their browser every so often.
    What can be done?
    I await your comments.
    From already thank you very much.
    Greetings.
    PS: In case you didn’t understand…
    1) In W3TC, in addition to the data I sent you, I just incorporated what you told me (Performance/Browser Cache/Enable: Prevent caching of objects after settings have changed)
    2) I just cleared ALL caches (Both W3TC and Cloudflare)
    3) In my Cloudflare I have configured the following…
    Browser Cache TTL: Respect Existing Headers

    Plugin Contributor Marko Vasiljevic

    (@vmarko)

    Hello @atutrabajo

    Thank you for your feedback.
    I’ve taken the screenshot of the website (what I am seeing) and the result is the same in the normal and the incognito window.
    Please check the screenshot.
    Can you please confirm this is how the website should look?
    Can you please make any changes and let me know so I can check this?

    Thanks!

    Thread Starter atutrabajo

    (@atutrabajo)

    Hello. NO.
    To begin with, you mention that…
    …”I took the screenshot of the website (what I am seeing) and the result is the same in normal and incognito window.
    Please check the screenshot”…
    But of course, you can’t keep up with the “details” like me, heh.
    Specifically, the “problem” is in the custom links such as those in the footer, as you can see in the following screenshot;
    https://ibb.co/YXvFCth
    If you notice, the links corresponding to;
    Phone TO YOUR Work +54 9 11 6 139 6732
    About me
    They are in a different color than the rest of the links.
    Both links are customized with the CSS code that I mentioned at the beginning.
    And, consequently, they should be like this;
    https://ibb.co/Dg1SZDH
    Which is how it looks in an incognito window.
    The reason is that once the visitor clicks on the link, the link should return to its original color.
    And the same thing happens to me with several CSS things. That is, they are modified and then, it is difficult for them to return to their previous state.
    It is as if the CSS that should be dynamic, is “stuck” to the last change.
    Anyway, let me tell you that while I was waiting for you, I kept looking for information, and I found a way to modify my hatcess file myself to add both the browser cache, headers, and Gzip compression.
    And since, frankly, I have similar results to what W3TC had, I left them at that.
    This means that, at this moment, the header cache is disabled in your plugin.
    In other words:
    1) W3TC is only dealing with page caching + minification
    2) In my hatcces.php I added by myself, the following codes…
    https://docs.google.com/document/d/10gDGu756DxMW33LZ-bzsnc32VV_vnmpB/edit?usp=sharing&ouid=102851233358919075037&rtpof=true&sd=true
    3) In my Cloudflare I have:
    Browser Cache TTL
    Respect existing headers
    In short, since the results of the W3TC browser cache and the one I am showing you are practically similar, I prefer to leave it that way.
    At least I don’t have to rely on any plugins to handle this.
    That is, the “problem” was NOT resolved. But at least I have control over my cache, headers and gzip.
    If you can give me a hand to improve something in those codes, it will be welcome.
    Otherwise, I thank you anyway.
    Greetings.

    Plugin Contributor Marko Vasiljevic

    (@vmarko)

    Hello @atutrabajo

    Thank you for your feedback.
    SO what you are saying is that the W3TC Browser cache is disabled, and you added custom rules.
    Can you please disable the settings one by one in Performance>general settings, save the settings and purge the cache after each setting is disabled, and see which one might be causing the issue?

    Thanks!

    Thread Starter atutrabajo

    (@atutrabajo)

    Hello. Yes. I understand that in my previous threads, I wrote you too much, heh.
    But what you ask, is something that I already told you. But hey. Let’s go again…
    1) As for…
    …”what you are saying is that the W3TC browser cache is disabled and you added custom rules”…
    This is correct. But. It has nothing to do with the source of the problem.
    Again. In the previous thread, I mentioned that…
    …”And since, frankly, I have similar results to what W3TC had, I left them like this”…
    This means that, in the results between a browser caching method (W3TC) and the one I now have (custom rules) THERE IS NO DIFFERENCE.
    And – also – I added that…
    …”Since the results of the W3TC browser cache and the one I am showing you are practically similar, I prefer to leave it that way.
    At least I DON’T HAVE TO DEPEND on any plugins to handle this”…
    2) Regarding…
    …”Can you disable the settings one by one in Performance > general settings, save the settings and purge the cache after disabling each setting and see which one might be causing the problem?”…
    I had already done it and commented before. But hey. The issue is +/- so…
    2.1) Custom links work correctly if (and only if) I have enabled: Performance/Minify/CSS/Minification Method: Minify Only.
    But… This breaks other parts of the site for me! (*)
    (*) For example:
    2.1.1) Data appears in the header search engine that I indicate in the configuration of the plugin in question (Ajax Search Lite) that does NOT appear!
    2.1.2) In the header and footer menus the opening arrows do NOT appear!
    Etc.
    3) Taking into account point 2,
    3.1) I proceeded to leave the following configuration:
    Performance/Minify/CSS/Minification Method: Merge and Minify
    Minify engine configuration:
    Delete protected comments (does not apply when “merge only” is active)
    ? Line break removal (does not apply when “merge only” is active)
    @import management: Bubble
    3.2) In Advanced I added the following:
    Never minify the following CSS files:
    .orange-over
    Which is the class that “handles” these custom links which, as I already mentioned, is the following;
    /* Custom CSS for Links */
    a.orange-over:link {
    font-weight: 700;
    color: #ef8f1d;
    text-decoration: none
    }
    a.orange-over:hover {
    font-weight: 700;
    Colour: #1177cc;
    text-decoration: underline;
    }
    a.orange-over:visited {
    font-weight: 700;
    Colour: #1177cc;
    text-decoration: underline;
    }
    a.orange-over:active {
    font-weight: 700;
    color: #ef8f1d;
    text-decoration: none
    }
    AND DESPITE ALL the problem is NOT solved.
    What else can you recommend me?
    I await your comments.
    Greetings.

    Plugin Contributor Marko Vasiljevic

    (@vmarko)

    Hello @atutrabajo

    Thank you for your feedback.

    So, we found the culprit and that is the CSS minify. In this case, there are two things that you can do. The first one is to remove the file responsible for this from being minified. You can do this by excluding the specific file for example
    /wp-content/themes/some-theme/assets/css/some-css-file.css
    and adding the path to Performance>Minify>Advaced>”Never Minify following CSS files”.
    Once added, this file will be excluded from the minify and you can check if this solves the problem.
    Alternatively, you can switch to Manual Minify, and add the files manually and in order, checking the website after each file is added to minify for any problems.

    Let me know if this helps!

    Thanks!

    Thread Starter atutrabajo

    (@atutrabajo)

    Hello. Thanks for answering.
    And can’t I just exclude a class or something?
    I’ll explain…
    1) This is the class that governs custom bindings:
    https://docs.google.com/document/d/1a7IJmfTCf2fCrYF5pDKzaIfKXc_R68h5/edit?usp=sharing&ouid=102851233358919075037&rtpof=true&sd=true
    2) This is the file that handles the footer links we talked about:
    https://docs.google.com/document/d/1nsGNzJpa6pfzjmHQZIckP6BsYOWQudJv/edit?usp=sharing&ouid=102851233358919075037&rtpof=true&sd=true
    3) And this is the “complete” styles.css file where 1) is included
    https://docs.google.com/document/d/16DP0krCZxgdAVyUVBunba9lP8h1GD1m2/edit?usp=sharing&ouid=102851233358919075037&rtpof=true&sd=true
    If you realize, if I exclude the entire file (3) from compression, I am going to decompress about 5kb of data that DOES NOT have an impact on this problem.
    What’s more, if you look at the complete file (3), you will see that it includes a…
    /* Personal Brand Course Presentation Box */
    Which also brought me problems and, I solved it, simply including in the list of exclusions of the minified CSS, the div;
    #Table 1
    In this way, now the box in question works perfectly.
    That’s why. Again, is there no other way?
    I await your comments.
    From already thank you very much.
    Greetings.
    PS: Just in case. The class is ALREADY included in the minified exclusion list; a.orange-over
    And I swear I tried to include it in every possible way. For example:
    .orange-over
    #orange-over
    a.orange-over
    #a.orange-over
    Etc.

    Plugin Contributor Marko Vasiljevic

    (@vmarko)

    Hello @atutrabajo

    Thank you for your feedback.
    Unfortunately, the answer is no. You can only exclude specific CSS/JS files from the modification and not the class of a specific file, since that filename will remain minified.
    Since this is being done by custom CSS, you may consider creating a separate CSS file for this and use it only for a footer template.
    Thanks!

    Thread Starter atutrabajo

    (@atutrabajo)

    Hello.
    The “good” news is that, I think, I already found the source of the problem.
    The “bad” (for me, of course) is that it is NOT your plugin, heh!
    I explain:
    After you told me about…
    …”You can only exclude specific CSS/JS files”…
    And that…
    …”you may consider creating a separate CSS file for this and using it for just a footer template”…
    Since I don’t know how to do that, I imagine that later, I would have to see how to link both things (CSS “separate” with the footer), I chose to try the 1st. choice you gave me. That is to say the…
    …”excluding the specific file, for example
    /wp-content/themes/some-theme/assets/css/some-css-file.css”…
    (In my case it is /wp-content/theme/some-theme/child-theme/style.css)
    But it did NOT work (The links were still “blue”).
    And that despite the fact that, previously, selecting “Just minify” (the CSS), had served me well (although it broke other things).
    So, I decided directly to disable W3TC and… IT DIDN’T work either!
    Ergo. It wasn’t your plugin, heh.
    And honestly, from there, I tried “everything”. For example:
    – I disabled ALL caches (W3TC + Cloudflare)
    – I changed the template to the default WordPress
    – Etc.
    And, the custom links were (and still are) NOT working.
    Conclusion: The problem is ELEMENTOR.
    How do I know? Simple.
    Because, if you realize, this site (stage9.atutrabajo.org) is actually a project mounted on a subdomain (stage9) in which I am redesigning my original site (atutrabajo.org).
    And guess what. Exact. On my original site… I’ve had THE SAME links for +3 years now, and they WORK (both in incognito and “normal” windows).
    So I already passed the background of the problem to the people of Elementor which, if you are interested in “gossip”, you can see in the following thread;
    https://www.ads-software.com/support/topic/critical-issue-with-custom-links/
    Therefore, with you (at least in this sense) everything would be ok.
    So that’s all for now.
    Thank you very much.
    Greetings.

    Plugin Contributor Marko Vasiljevic

    (@vmarko)

    Hello @atutrabajo

    Thank you very much for the detailed information and I am glad that you found the source of the problem.
    I hope you’ll manage to fix this soon.
    Thanks!

    Thread Starter atutrabajo

    (@atutrabajo)

    Yes. Although I doubt it, this is the “answer” that the people of Elementor gave me…
    …”unfortunately, we are limited in support issues that arise due to the use of custom code”…
    Anyway.
    Anyway, again, thanks for your time.
    Greetings.

Viewing 12 replies - 1 through 12 (of 12 total)
  • The topic ‘Opportunity for improvement’ is closed to new replies.