The main obvious problem with your scheme is that when someone wil try to reload an old page it will get all kinds of 404 when requesting the JS and CSS since those files are not on the server anymore.
There is seriously no need to reinvent the wheel, just follow WordPress’s best practice unless you have an excellent reason to deviate.
Related Posts:
- Getting failure when using filemtime() with wp_enqueue_style
- Caching and Versioning for rtl.css
- How wp_cache is supposed to work, and does it help with performance?
- How can you develop on a live WordPress installation that is using W3 Total Cache? [closed]
- Cache Busting using htaccess Rewrite rule?
- How to make a local cache of mshots images
- Take control of WordPress before functions.php
- My wordpress theme name isn’t updating straight away
- When I save changes for css and js in my WP localhost env windows 10 the changes don’t take effects immediately!
- WordPress theme Modifications not showing up on live server
- Solutions for generating dynamic javascript / CSS
- Custom single template for a specific category
- How to add a checkbox element to attachments editor with example
- Auto get_header and get_footer on every template?
- Nested comments ignored for max per page in wordpress
- wp_nav_menu sort order?
- How does WordPress decide what template to use as frontpage
- get_option function
- Twenty Eleven home page show only excerpt
- Snippet: Use classes instead of inline styles for text alignment
- Make a custom theme translate-ready
- Grab the first paragraph of each post
- Set Expiration Date of a Post from the Frontend with wp_insert_post
- How to Handle CSS for Multiple Header header.php Files?
- Resources for a complete beginner to learn to work professionally with WordPress [closed]
- “Cheatin’ uh?” error message on multple theme directories
- How to tell if the user is an admin?
- Is tag default in WordPress?
- “Display Site Title and Tagline” checkbox not working?
- Why does WP recommend against custom favicon functionality in themes?
- Removing title tags from each page
- How to attach different React Components to different Dom Roots using the new WP wordpress/scripts webpack/babel
- Why is the first query affecting the second query, even after wp_reset_query() and wp_reset_postdata(), but not on the second page?
- Remove Cookies From WordPress Core
- Is it necessary to prefix every css class in a theme framework?
- No Appearance –> Header menu
- Add theme templates for child categories into the template hierarchy
- How to display posts in hyperlink with nested slugs?
- Internationalization and functions that use it
- How to make Isotope and WordPress work together?
- WordPress empty Nav Menu error
- How do I Add images uploaded in the post to a default custom field
- How to add a button which saves the post then executes a function
- Disable dashboard drag&drop
- Update Custom Theme Version
- Storefront child theme not applying parent theme [closed]
- Catagories to the list of the titles in that catagory to the content of the post [closed]
- How to customize output of plugin
- What can I use for small text when converting to WordPress?
- How to specify the “Main Sidebar” for a theme
- How to place HTML tags in content from the_content()?
- Can I get the ID of an inserted / linked image?
- Using page-id-{ID} from body_class() in local dev, versus live staging
- Is there a way to visualize / print out which templates were used to render a given piece of UI?
- How to use widget in a widget-less WordPress theme?
- Unique design inside a specific category’s url
- Rewrite the HTML markup of wp-login.php
- Are there any caveats to compiling all of my theme’s SCSS into the style.css file in the theme root?
- SVG in list-style-image breaks when adding fill
- Alignment Problem [closed]
- Clearing dummy data before launch
- Multiple editable areas
- Converting a static HTML template into a WP theme – How do I specify page content?
- Create new wordpress theme with no need update
- How to display date of blog creation
- Translate a theme with a PO file
- All pages are the same
- Theming media inserts
- How to update mark-up of a gallery block in a custom theme?
- wordpress script_loader_tag in function.php
- Why not works the search.php file?
- How do I make my terms for each product display via foreach loop? (woocommerce)
- WordPress Insert ads after every 5th post
- Warning: This page allows direct access to your site settings. You can break things here. Please be cautious!
- Adding a second logo next to the main one in header
- How to add an image to a theme page template in code?
- Looking to create an “update theme” functionality for a custom front-end dashboard
- Text View (Code View) in WordPress Customizer TinyMCE Editor
- How to get next post and previous post URL in loop, single.php My WordPress 4.9.6
- Import settings from another theme
- Load multiple css simultaneously using functions.php
- bbPress: modifying template for forum index
- control posts order by select option
- Nav menus Fast previewing not working with wp_get_nav_menu_items!
- Different stylesheet for different pages not working fully
- Can I use WP Multi-site on a sub-domain with a different theme but use all the original site’s posts/pages?
- How to Apply Category Filter to Pagination
- How do I use the add_query_arg function in a template tag like previous_post_link?
- Get all Custom Post Types
- Let users to add any number of input fields in the theme option page
- Does WordPress require that your submitted theme supports multiple menu levels?
- Add custom field to existing meta box?
- Theme Options Doesn’t Work On WP Multisite
- WordPress two sidebar layout or theme
- Standard Way To Do Custom Work Within A Page?
- Subsite theme mystery man replacement with Buddypress on main site [closed]
- Why does the first loop take arguments from the second loop?
- Theme layout for home page [closed]
- Is there any way to show child theme in theme detectors?
- Meaning of “if ( is_home() && ! is_front_page() )” snippet?