If i access the full css url in the browser then i see the "cached" file instead of the modified file:
I tried again and noticed a behavior. When I create a new stylesheet resrouce then it works normally. If I do the first edit then it is updated correctly, but after that first update it no longer works.
Alex,
I've modified all css calls to use ClientDependency just as you directed. I did a first test and loaded the updated css, but the newest changes still don't show up. I now have the ability to modify the "version" counter of clientDependency.config, but does that mean I have to do this on every modification?
In the previous way - without ClientDependency - I still couldn't understand how the problem can be related to the browser's cache, since even when accessing from different devices, the file presented is still the "old".
Alex, this is perfect for ClientDependendy. Thanks for this.
I'm still with that problem about cached files instead of the modified file even when access from different or new devices.
Sorry about this, but i don't understand how is possible to browser serve a cached file even on a totally new access.
I will continue studying the subject of caching to understand if there is any cache configuration in IIS, Umbraco or some other host location.
For now I'll keep the structure with ClientDependency.
Cache ClientDependency still not serve a modified CSS
Hello.
Please, i read a lot of posts and threads about this case but my CSS files still not updating. I perform all of this things:
test.css?v=79000
);Please somebody have an new idea? My Umbraco version is 7.13.0.
Thanks
Hi Rafael
How do you render references to CSS In your code?
Alex
Hi Alex. I tried by two different ways:
1) put directly on link tag in "tradicional" way:
2) using link tag with @Url.Content:
and the results is the same.
If i access the full css url in the browser then i see the "cached" file instead of the modified file:
I tried again and noticed a behavior. When I create a new stylesheet resrouce then it works normally. If I do the first edit then it is updated correctly, but after that first update it no longer works.
Thank you!
Hi Rafael
Both ways are not using ClientDependency cache. You are experiencing browser cache.
Pust css link like this:
And this is in the header of your master page:
Thanks, Alex
Alex, I've modified all css calls to use ClientDependency just as you directed. I did a first test and loaded the updated css, but the newest changes still don't show up. I now have the ability to modify the "version" counter of clientDependency.config, but does that mean I have to do this on every modification?
In the previous way - without ClientDependency - I still couldn't understand how the problem can be related to the browser's cache, since even when accessing from different devices, the file presented is still the "old".
Thank you.
Diplo.GodMode package can do that
or
You can do that manually
or
This package - https://github.com/SteveEdson/bump-client-dependency
Thanks,
Alex
Alex, this is perfect for ClientDependendy. Thanks for this. I'm still with that problem about cached files instead of the modified file even when access from different or new devices.
Sorry about this, but i don't understand how is possible to browser serve a cached file even on a totally new access.
Thank you!
Rafael
Files are from the server or from the cache, I don't know your installation for 100%
I just tried to assume where it is
Thanks,
Alex
I believe it's from the server because the call is direct:
I will continue studying the subject of caching to understand if there is any cache configuration in IIS, Umbraco or some other host location. For now I'll keep the structure with ClientDependency.
Thanks
IIS is caching static files probably. It could also be you browser, did you clear your browser's cache?
is working on a reply...