Nico Knoll Posted April 14, 2014 Share Posted April 14, 2014 Hey, it would be lovely if processwire could cache background images as well. Like used in: <div style="background-image:url(abc.jpg);"></div> Is there already a way to do this? / Nico Link to comment Share on other sites More sharing options...
Raymond Geerts Posted April 14, 2014 Share Posted April 14, 2014 Caching images has not much to do with processwire in that way, images are cached by the clients web browser. And once it processed by processwire to make a thumbnail the direct URL to the image is used. Possibly when your images are generated with PHP you could set some headers to control caching. But this post on stackoverflow you might find interesting, it covers a way to embed images as base64 data in your HTML or CSS directly. http://stackoverflow.com/questions/1124149/is-embedding-background-image-data-into-css-as-base64-good-or-bad-practice 2 Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now