Jump to content

Recommended Posts

Posted

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

Posted

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

  • Like 2

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...