If you add a version number in the wp_enqueue_script()
call – fourth argument – it will append a query string to the css file reference and most (if not all) browsers will see that as a cache-breaker and force the asset to be requested again from the server.
https://developer.wordpress.org/reference/functions/wp_enqueue_script/
If you are hard-coding the script reference in your HTML then simply add a query string to the end: /mypath/some-stye.css?v=1234
Any changes to that v=1234
part will force the cached copy to be invalidated.
Related Posts:
- How to insert spaces/tabs in text using HTML/CSS
- Dynamically change color to lighter or darker by percentage CSS
- How would you make two s overlap?
- CSS “margin: 0 auto” not centering
- How can I insert vertical blank space into an html document?
- How to make a
- display in a horizontal row
- CSS3 Scale Animation Keyframes
- JavaFX css themes
- Border Position
- Bootstrap align navbar items to the right
- Detect if a browser in a mobile device (iOS/Android phone/tablet) is used
- Using font awesome in codepen
- using media queries with LESS
- How to get multiple images to auto resize and stay centered within a div
- CSS rotation cross browser with jquery.animate()
- How can I center
- into a div?
- How do you avoid caching during development?
- How to specify a class added to my gallery
- Get parent category class in post_class()
- Assign title-specific class to list items in menu based on WP pages
- WordPress – https : Css and Js files are not working (load on http instead of https)
- Is it possible to create a full width row in WordPress’s editor window? [closed]
- Load custom css after bootstrap
- Enqueue style for Password Reset page
- Highlighting the current page in a navigation menu which links are generated with a custom loop?
- How to change header & footer to full width? [closed]
- Styleswitcher or themeswitcher to allow user to switch back to standard view from mobile device
- Remove WordPress/Gutenberg button styles for ACF blocks
- Relative path instead of absolute for wp_enqueue_script
- If post by specific role different css to everyone
- Theme Check errors about missing CSS rules
- removing my underline from hyperlinks
- How to override Gutenberg admin CSS
- WordPress stripping out BR tags, need assistance
- How to Remove White Space above video Block
- Font Awesome wp_enqueue_style
- How to enqueue a random css style?
- No styling on fresh wordpress installation
- How to include .css code in a WordPress page template?
- Enqueue Style Function Not Loading
- How To Add a Transition style to WordPress Comment Box? [closed]
- How to use Japanese characters for a single page
- Certain aspects of site suddenly not working in Chrome and Firefox
- How do I make header.php use different css for different pages?
- How to change header dimensions in WordPress?
- Delete a white space using css
- wordpress css file
- jQuery UI Theme that aligns perfectly with the admin UI
- CSS – why does my sidebar drops to the bottom of the page? [closed]
- WordPress backend is loading without style
- How to integrate Bootstrap Grid System in WordPress
- Long post titles don’t move to next line
- How to not load stylesheet and how to load a second stylesheet on a page
- How can I selectively insert a header for my shop page in woocommerce? [closed]
- Change the search icon in twenty fourteen
- styling isnot working in wordpress theme
- Plugins not showing up for custom template
- Using True Type Fonts (ttf) [closed]
- Horizontal drop down category with hover effect working
- WordPress Sudden Loss of All CSS And Tons of JQuery Errors
- Trying to hide HENTRY (Author Meta Data) from a Post ID
- Can’t find a tag to style
- Probleme d’emplacement
- Custom CSS on mobile
- Removing Image Links from Custom Post Type
- Add inline CSS to login page with wp_add_inline_style
- Theme: Twentynineteen // How to exclude cookie-control triangle and star svg from being overwridden by theme css “svg { fill: currentColor; }”
- Cannot add a class to metabox
- CSS does not Update
- Need help removing block of white space between footer widgets and footer [closed]
- Change image using only CSS [closed]
- theme RTL make big white space in mobile mode and you need to scroll to see the site
- Why child theme stylesheet takes long time to update?
- Navigation menu disappears when I hover the mouse [closed]
- I want to change change the arrangement of the grid of posts displayed by the theme on the Search page (read the description for better understanding)
- Can’t center post thumbnail with bootstrap [closed]
- Force include a stylesheet from parent theme
- Head section of the wordpress blog
- How can I override an existing custom CSS rule for a specific page
- Site name not showing in browser bar, only url
- Style tag on wp_footer
- Pages in another language
- Using a style sheet for modern browsers and another for older browsers
- Outputting the blogposts or the_content()
- How to insert a clickable and fixed background [duplicate]
- Apply Classes to post text inside editor
- Use of CSS classes in editor-blocks.css file
- Twenty Twelve theme: remove margins
- Parent style messing up with Bootstrap [closed]
- Problems when writing a post
- Will the following code make my css deal with images in the optimum way?
- Interactive maps in wordpress
- WordPress CSS not working properly
- Add Custom CSS Class in Child Theme [closed]
- Narrow paragraph block aligned to left of “wrapper”
- Transparent Overlay for Gravity Forms Ajax Spinner
- Remove the main title, but only from the main page
- aos properties ‘invalid’ and not recognised when included as a css class [closed]
- ACF Extended : Disable styles in front [closed]
- How to remove automatically added custom style tag?