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
- How can I submit a form using JavaScript?
- How do I get the current date in JavaScript?
- How to do a redirect to another route with react-router?
- Jest spy on functionality
- Use a JSON array with objects with javascript
- Toggle show/hide on click with jQuery
- How does “/\s/g” replace spaces with other characters?
- What is the correct way to check for string equality in JavaScript?
- JavaScript TypeError: Cannot read property ‘style’ of null
- How to obtain username from Promise
? - How do you check if a variable is an array in JavaScript?
- Understanding React-Redux and mapStateToProps()
- What is the meaning of == $0 that is shown in inspect element of google chrome for the selected element [duplicate]
- ReferenceError : window is not defined at object.
Node.js - Node.js Port 3000 already in use but it actually isn’t?
- Uncaught TypeError: $.post is not a function
- Unable to verify leaf signature
- When and why to ‘return false’ in JavaScript?
- In angularjs we are having ng-disabled directive, why ng-enabled directive is not provided by the framework as we are having ng-show and ng-hide
- Send POST data using XMLHttpRequest
- querySelector vs. getElementById
- Google weather widget on my website
- How to generate a simple popup using jQuery
- How to convert an Object {} to an Array [] of key-value pairs in JavaScript
- Javascript versioning to avoid caching, difference in these practices?
- How to format numbers as currency strings
- Understanding how data-dismiss attribute works in Bootstrap
- Add table row in jQuery
- Node.js document is not defined
- Create table with jQuery – append
- When is JavaScript synchronous?
- How to reset a form using jQuery with .reset() method
- Uncaught ReferenceError: Firebase is not defined
- How do I remove documents using Node.js Mongoose?
- node-request – Getting error “SSL23_GET_SERVER_HELLO:unknown protocol”
- Count the number of occurrences of a character in a string in Javascript
- Javascript removeEventListener not working
- Load image with jQuery and append it to the DOM
- RGB to hex and hex to RGB
- No visible cause for “Unexpected token ILLEGAL”
- javascript unexpected identifier
- How to send email by using javascript or jquery
- Access to Image from origin ‘null’ has been blocked by CORS policy
- Onclick on bootstrap button
- TypeError: res.json is not a function
- How to do case insensitive string comparison?
- Understanding the ngRepeat ‘track by’ expression
- How can I test if a letter in a string is uppercase or lowercase using JavaScript?
- How to create a HTML Cancel button that redirects to a URL
- JavaScript post request like a form submit
- Jest encountered an unexpected token
- How to get the first element of an array?
- How to enable CORS in AngularJs
- bootstrap buttons onclick events
- Cannot read property ‘forEach’ of undefined
- JavaScript: function returning an object
- What is the non-jQuery equivalent of ‘$(document).ready()’?
- Changing the selected option of an HTML Select element
- What are the benefits of using wp_enqueue_script?
- Is it Possible to Extend WP Customize JS Methods?
- What are all the query parameters for getEntityRecords?
- How to prevent text modified using gettext filter being stomped (presumably) by updateText() js function within a CPT’s edit screen
- Load multiple Javascript scripts
- Filter medias from the Media Uploader (wp.media) modal with a post meta
- Is there a client side API for handling transients or options?
- How should I add JavaScript to a child theme?
- Create user from outside WordPress through api?
- Load plugin JS in footer
- Setting a menu link to open a pop-up
- Media library not working with wp_editor() on the front end
- Is there a media_upload_tabs-similar filter to add tabs to the simple/featured image picker?
- Tinymce.js editor in Chrome?
- Local PC cache stays filled with old WordPress Site data
- Display a div when post has a certain tag
- Implementing Webflow JS in WordPress
- This page can’t load Google Maps correctly [closed]
- Gutenberg RangeControl
- JavaScript Libraries in WordPress
- How to use WP switchEditors.switchto(this) JS function in your own script?
- Removing admin javascript
- Can I get the user name in JavaScript?
- Landing function through URL
- Unable leverage Browser Caching on AWS Bitnami stack (Apache) through W3TC and Cloudfront CDN
- Escaping quotes while enqueuing scripts
- Combining results from WP-API using AngularJS
- How do I cycle a JS function in WordPress? [closed]
- Use add_action to run a script, but only on the post editor page
- Browser Caching .htaccess