Seems that CSS modifications NOT being updated in cached CSS

Permalink
No matter what I do, modifications to the main.less file, in Mortar theme, are not being picked up by the website. I've refreshed cache, turned off all caching across the entire website, as well as deleted the actual cached css file in the filed directory. Yet, all of my modifications fail to show up in the cached CSS file. I log in, refresh website cache, delete browser history/cache, and even verify that the changes ARE present in the theme's main.less file, but nothing takes effect and none of my changes show up if I inspect the CSS in firebug. What is the deal?

barkingtuna
 
WebcentricLtd replied on at Permalink Reply
hello,
what modifications are you making? Which version of 5.7 are you on?
barkingtuna replied on at Permalink Reply
barkingtuna
http://www.i17tbirdstorage.com

5.7.4.2. Just simple class modifications like the following:

I've had to resort to using the front end theme customization. The exact modifications are present on the Bluehost account in the directory but do not make it to the cached CSS file the theme references no matter what I do. However, the second I put them in using the front end customization method it works.

.c5h-page-meta-wrap h4 {
font-size: 1.3em;
text-align: center;
}
.ccm-page .c5h-page-meta-wrap h4 {
text-align: center;
font-size: 1.3em;
}
.ccm-page .branding-left {
padding-top: 20px;
}
.ccm-block-feature-item h4 a {
color: #2f2f2f;
}
@media only screen and (max-width: 768px) {
WebcentricLtd replied on at Permalink Best Answer Reply
are you sure your changes aren't being overridden by subsequent imports?
What if you add your changes to a new file (say overrides.less) and call that one last?
barkingtuna replied on at Permalink Reply
barkingtuna
yep... your solution worked perfectly. I was able to put all of the customization, both from the front end design customization area and from the main.less files, in the overrides.less file and it's picking it up just fine. Thanks!
barkingtuna replied on at Permalink Reply
barkingtuna
Hi Andy... thought it was solved, but I'm back where I was the other day. See the following. Your fix seemed to work but it was merely a "mirage" once I made some more changes to the LESS and CSS files.

https://www.concrete5.org/community/forums/5-7-discussion/5.7.4.1-ig...

"http://www.i17tbirdstorage.com/

I previously posted about this issue but it was NOT resolved as I thought and seems to be an issue with the caching settings. No matter what I do, even if I turn off ALL caching settings and then delete the cached CSS files in the files directory, the website ignores my no caching settings and regenerates a cached CSS file and references it instead of referencing the un-cached CSS or LESS files. I know this is happening because when I delete the cached css file and refresh the files/cache/css directory another cached CSS file appears. The only way it seems to be forced to reference the actual CSS/LESS file is to change the name and update the header to reference the new file. Then all my changes show up as intended until I make another change to the file. Then, it ignores the fact that caching is turned OFF and it references the cached CSS file.

It was driving me nuts... but I do believe that it's a C5 cache setting issue; at least with this install. Any thoughts?"
WebcentricLtd replied on at Permalink Reply
hi,
what does your main.less have in it?
Are you using the style customiser?
Does your theme use any presets?
barkingtuna replied on at Permalink Reply
barkingtuna
I try NOT to use the front end style customizer. I make all CSS edits directly in the Theme files. As for presets... I use the Mortar Theme and yes, there is a defaults.less preset file and it is built on foundation.less. Either way... check out this other thread. Something isn't right either with the firewall, which is conceivable, or something else. I can make a direct edit in the file manager with Bluehost clear both the site and browser cache, yet I still don't see the updates. However, I checked on a colleagues computer and they were there. It's the weirdest thing.

https://www.concrete5.org/community/forums/5-7-discussion/5.7.4.1-ig...
WebcentricLtd replied on at Permalink Reply
strange - but, at least you've tracked it down.

If it were me I'd clear down my browser cache, restart and do some tests.
Does your colleague get the updates all the time or is it just because they were visiting the site afresh (now they've visited are styles stuck just like yours were)?

If they never exhibit the same problem then is there something different with their setup?
OS the same? Browser the same? Using a different proxy to get onto the internet? etc etc.
Is your browser definitely clearing cache or does it need a re-install?

These kind of things can be a pain to track down.