0
Ola, I’m having trouble displaying my site on Google Chrome. I edit the codes mainly in css, in mozila displays on the fly, but in Chrome it takes a long time (after updating 20 times) that works, or not at all.
The problem is only with css. I’m making a wordpress theme, so I use the style.css
I call the style so:
<link href="<?php bloginfo('template_url'); ?>/vendor/bootstrap/css/bootstrap.css" rel="stylesheet">
I’m using 3 more css pages:
<link rel="stylesheet" type="text/css" media="all" href="<?php bloginfo('stylesheet_url'); ?>" >
<link href="<?php bloginfo('template_url'); ?>/css/grayscale.css" rel="stylesheet">
<link href="<?php bloginfo('template_url'); ?>/css/agency.css" rel="stylesheet">
It was necessary to use them to get certain results that I wanted. I don’t know if this is getting in the way. But I had the same problem in another theme that I was developing and only used the style and bootstrap. All this to make a responsive website too.
This is probably because Chrome is caching your application without checking the file for changes. You can try to clear the browser cache and refresh the page or use the HTML meta tags to disable the cache permanently (advisable only while development, for production it is better to keep the cache).
– Woss
How do I do that?? Some things I’m still learning hehe!
– Wess
To clear the browser cache: https://support.google.com/accounts/answer/32050?hl=pt-BR. About the meta tags, you can read more about here: http://stackoverflow.com/questions/1341089/using-meta-tags-to-turn-caching-in-all-browsers
– Woss
It worked out Thank you so much. I used the tag. You said then that when I put the site on the air I need to take the tags??
– Wess
Exact, because the cache benefits in the loading time of your site, making it faster.
– Woss
how to answer the question in the comments is not a good practice (I did it just because I was not sure if it was the same problem), transcribed the solution as an answer. If possible, mark it as useful and signal the post as answered.
– Woss
Okay, thank you very much.
– Wess
Possible duplicate of How to force load JS and CSS files with each new published version?
– Guilherme Nascimento