Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added "bypassCache" option to let the browser cache the images. #15

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

eguaj
Copy link

@eguaj eguaj commented Oct 2, 2012

By default, image's URLs are prefixed with a timestamp which prevent
the browser from caching the image.

Setting "bypassCache: false" disable this prefix, and allow the browser
to cache the images and do If-Modified-Since requests instead of
fetching the whole image.

@larrybotha
Copy link

I'm glad this has been proposed.

Cache busting should be disabled by default, however. I'm not sure of the use case for loading every image every page load, but allowing images to cache by default would improve user experience. Cache busting should be enabled only when needed.

@eternal-sorrow
Copy link

Is this likely to be merged? Would be good to have the possibility to disable this feature.

By default, image's URLs are suffixed with a timestamp which prevent
the browser from caching the image.

Setting "bypassCache: false" disable this suffix, and allow the browser
to cache the images and do If-Modified-Since requests instead of
fetching the whole image.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants