Yeah, you can do leverage browser caching for minified js & css files same as we do for other files.
<IfModule mod_expires.c>
ExpiresActive On
ExpiresByType image/jpg "access 1 year"
ExpiresByType image/jpeg "access 1 year"
ExpiresByType image/gif "access 1 year"
ExpiresByType image/png "access 1 year"
ExpiresByType text/css "access 1 month"
ExpiresByType text/html "access 1 month"
ExpiresByType application/pdf "access 1 month"
ExpiresByType text/x-javascript "access 1 month"
ExpiresByType application/x-shockwave-flash "access 1 month"
ExpiresByType application/javascript "access 1 month"
ExpiresByType image/x-icon "access 1 year"
ExpiresDefault "access 1 month"
</IfModule>
You are talking about speed, for that you can add gzip or deflate in htaccess.
Related Posts:
- Mixed Content Page: requested an insecure stylesheet error
- How to append a URL parameter to all outbound URLs
- WP script versioning breaks cross-site caching?
- Cloudflare’s Rocket Loader + WordPress -> Ignore scripts?
- Google PageSpeed Enable Compression isn’t working?
- Google Page Speed
- check if Url contains special character like #
- Redirect to homepage if attmpting to leave intranet [closed]
- Can’t change javascript files
- How to identify which javascript is being executed
- Disable PAGESPEED SCRIPT INJECTION to IMAGE in theme files [closed]
- Adding react app to an existing wordpress website
- map function for objects (instead of arrays)
- Check if a string has a certain piece of text [duplicate]
- How to convert a string to an integer in JavaScript?
- “document.getElementByClass is not a function”
- How to create an associative array in JavaScript literal notation
- Include another HTML file in a HTML file
- Cannot open local file – Chrome: Not allowed to load local resource
- After $npm install, Getting Error: Cannot find module ‘../lib/utils/unsupported.js’
- What’s the best way to convert a number to a string in JavaScript?
- React Native: this.setState is not a function
- How to perform string interpolation in TypeScript?
- forEach is not a function error with JavaScript array
- Short circuit Array.forEach like calling break
- How can I upload files asynchronously with jQuery?
- How do I format date in jQuery datetimepicker?
- Express Render not working return error: No default engine was specified and no extension was provided
- Remove Object from Array using JavaScript
- Angular4 – No value accessor for form control
- What is the difference between ( for… in ) and ( for… of ) statements?
- Cannot read property ‘bind’ of undefined. React.js
- Why is my asynchronous function returning Promise {
} instead of a value? - NodeJs : TypeError: require(…) is not a function
- Sort array by firstname (alphabetically) in Javascript
- Sorting arrays in javascript by object key value
- Number prime test in JavaScript
- document.getElementById not working / Display
- jQuery: Check if div with certain class name exists
- Objects are not valid as a React child. If you meant to render a collection of children, use an array instead
- CreateElement with id?
- Print PDF directly from JavaScript
- Set value of hidden input with jquery
- How does AJAX work?
- How to remove all duplicates from an array of objects?
- Finding the average of an array using JS
- Creating a div element in jQuery
- e.target.value on an input field ReactJs, how does it work?
- gapi is not defined – Google sign in issue with gapi.auth2.init
- Remove all special characters with RegExp
- jQuery: Get selected element tag name
- Does ECMAScript 6 have a convention for abstract classes?
- Why is jquery show() not working in example
- console.log showing contents of array object
- How can I use jQuery to run MySQL queries?
- Using setTimeout on promise chain
- Regular Expression to reformat a US phone number in Javascript
- How to use forEach loop correctly in angular 2?
- javascript push multidimensional array
- How can I know which radio button is selected via jQuery?
- jquery toggleClass not working
- Positioning element at center of screen
- Get hours difference between two dates in Moment Js
- JQuery Number Formatting
- How to add jQuery in JS file
- Get query string parameters url values with jQuery / Javascript (querystring)
- trying to enqueue script in wordpress
- Does javascript have an equivalent to PHP’s preg_replace_callback?
- Headless WordPress: How to authenticate front end requests?
- Inserting ads within content
- Theme Customiser not live previewing changes on pseudo elements
- Instantiate TinyMCE via JS ( rather than PHP/wp_editor )
- How do I access site and block editor state data and use `useSelect()` or `withSelect()` to bind it to my components?
- wp_enqueue_scripts is not working in my plugin
- How to retrieve a value from an input field in a media view template
- How to change redirection route to a php page for making it only accessible by logged-in members?
- Gutenberg extend blocks add new class name
- Modal working only on home page
- best way for app users to submit blog post?
- AJAX not Working with php as supposed
- how to localized scripts of new page requested by ajax?
- Why WordPress not using JSON_UNESCAPED_UNICODE by default?
- Show a popup message when file is uploaded
- Form will not popup, when clicking on the link to the form
- internal anchor links no longer working after upgrade
- Generating dynamically Schema LD+JSON microdata with Javascript works in test environment but not in WP
- on change form submit variable value not updating
- youtube full screen on off permater code help for wordpress
- How do I make a savable preview like Youtube Gutenberg block?
- iFrame onLoad in custom Gutenberg block
- Taxinomy slug as var in parent archive page, without having a specific taxinomy page
- The page isn’t redirecting properly was given when redirecting
- How To Pull Information From A Page And Input The Data In The WordPress User Database Table
- How to register or enqueue script and stop it being called in head?
- WordPress 4.1 crashes loading of ArcGIS Javascript API
- I keep getting Javascript error messages
- convertEntities() used before it is defined
- JavaScript: TypeError: xyz is not a function after upgrading WordPress
- Orbit Slider and Events Manager Plug-in JavaScript
- Theme path of WordPress inside javascript file