This can be done with Apache configuration, I have used this snippet in the past in .htaccess:
ExpiresActive On
ExpiresByType image/gif "access plus 1 month"
ExpiresByType image/png "access plus 1 month"
ExpiresByType image/jpeg "access plus 1 month"
Can be set up with plugin as well. W3 Total Cache (which I currently use) can do that among other things.
Overall this is not a huge performance factor. Modern browsers are smart enough about caching images even without expires set.
Related Posts:
- Why my browser keeps loading old version of custom JavaScript files in \divi\js? [closed]
- Best WP cache plugin for large site [closed]
- How would implement StackExchange ‘Questions with similar titles’ for the FAQ on my wordpress site
- Can I ignore caching of a plugin in W3 Total Cache? [closed]
- Getting “Fatal error: Call to undefined function wp_cache_get() in option.php” after updating a cache plugin [closed]
- Plugin Expires Headers – W3 Total Cache [closed]
- Remove caching from wp_remote_get calls from custom plugin
- W3 Total Cache: Load CSS asynchronously for better PageSpeed score? [closed]
- WooCommerce & Caching [closed]
- Where should a plugin or widget cache its results?
- Write to / remove from default .htaccess file from plugin?
- Can WordPress Plugin Directory Cache Delay the Upload of Images?
- How many SQL queries WP Super Cache make to serve cached page?
- Preferred way of cacheing a value in php
- Possible htaccess configuration issue for HTTPS websites by WP Fastest Cache plugin? [closed]
- With W3 Total Cache when I publish a post it does not appear in the homepage. Only if i purge all cache [closed]
- Correct way to perform non-cacheable DB query
- Plug-in Conflict: Art Direction and Super Cache
- changes to widget settings not showing up in individual pages pages until they’re updated [closed]
- create link/button to purge cloudflare cache on post
- How to handle cookies from a WordPress plugin on a cached page?
- w3 total cache and sitemap.xml
- Caching RSS plugin data
- Adding (image) caching to my Tumblr widget
- w3 Total Cache not Caching – Requested URI is rejected [closed]
- My homemade plugin is trying to update to someone else’s plugin
- _prime_post_caches in wordpress
- Combining several CSS files into one for optimization
- Can WordPress Drop-ins be given their own directory?
- How Can I Safely Remove WP-Super Cache without messing my site up? [closed]
- What is the best way to cache pages on WordPress
- Changes not visible when not logged in
- How to add support for caching plugins for my own plugin?
- site url is not working after migrtaion in worpress, all links are broken
- Object Caching Plugin force every plugin to cache objects?
- How to save comment name email url fields?
- Cache plugin for medium traffic news blog
- Warning! PHP safe mode enabled!
- W3 Total Cache Help – How to update DNS Zone for a static domain [closed]
- I’m having several WP issues, especially with missing images
- Error activating certain plugins
- What archive plugin works with W3 total cache? [closed]
- W3 Total Cache plugin chronic message
- How do I minify a plugins CSS/JS code?
- WordPress Cache delete on plugin uninstall
- Memcaching recurring SQL Queries
- How to stop Facebook mobile in-app browser cache on WordPress
- how long do restored versions take to go live?
- I’m receiving the following error using the below code: Uncaught Error: Cannot use object of type WP_REST_Response as array
- Problem with MEMCACHE and Redis with wp_options
- How to fix caching issue in PHP data from database
- Execute inline javascript in wordpress after page fully loaded
- How to reset WP plugin?
- WordPress logout appends cache/all/index.php to the site_url()
- How to cache for multi server environment? Memcached, Redis or other?
- How can I refresh the plugins cache manually?
- How to find out programmatically whether any cache plugin is installed in the WordPress website?
- Caching of combined CSS and JS fails because of losing MIME types through combining by PHP
- Should I Save widget HTML to a file cache?
- Session alternative for plugins (due to caching)
- W3 Total Cache and IIS7 not doing much [closed]
- File permissions for wp-minify plugin
- Website keeps going down, is it a plugin, database, memory problem, or something else?
- WP Super Cache versus W3 Total Cache [closed]
- Browser Cache causes ‘Orderby=rand’ to return the same posts
- Fragmented Static Conversion of WordPress Pages
- How can i store cache of wordpress a database request without plugins?
- How can I wordpress cache a database request with no existing plugin?
- Request initiator chain contains old CDN
- How to structure a plugin
- Getting Path To Uploaded Attachment Image After Upload
- Error when updating plugins by FTP “Unable to locate WordPress Content directory (wp-content).”
- Plugin stability | Using a plugin VS Developing functionalities yourself
- titles in recent posts appear together in all languages with qtranslate
- Why is the unrendered widget number `__i__` showing up in the JavaScript but not in the HTML?
- Multiple plugins using the same OAuth class issues
- Prepare plugin options for multi-lingual support
- A very basic question – how to properly use wp_mail() in a plugin
- Show a special message for private page?
- WooCommerce: Building a page with user input which is used to query order status and external API and return a result
- wp-pagenavi getting 404 page not found
- correct sql query
- SQL query, error
- Sanitizing file & directory form input
- What’s my optimal choice for remote access to my localhost sites?
- Checkbox show / hide output result
- login form should redirect to register page for in 1st login next time it should redirected to home page
- Object of class WP_Error could not be converted to string in /formatting.php
- Ajax call to php function doesn’t work PHP code
- On save_post need to wp_insert_post and save partent post id to child post and child post id to parent post
- Overwrite a file with the content of a textarea
- Cookie set in a plugin visible in admin but not on front
- Team member plugin problem after changing to another hosting
- AJAX login without a plugin does not work. when add a action to function.php
- Plugins not activated after update?
- Overwrite CSS of Instaemail plugin popup
- Move related products after product summary? [closed]
- Trying to insert a row from a Plugin
- Use a WordPress Plugin in non-WordPress .php page [closed]
- Cannot modify header information – headers already sent by