AOEpeople/Aoe_LazyCatalogImages

Name: Aoe_LazyCatalogImages

Owner: AOE

Description: Magento module to lazy render catalog images

Created: 2015-01-14 15:42:25.0

Updated: 2017-11-20 09:18:44.0

Pushed: 2017-05-11 20:45:49.0

Homepage: null

Size: 97

Language: PHP

GitHub Committers

UserMost Recent Commit# Commits

Other Committers

UserEmailMost Recent Commit# Commits

README

AOE

Aoe_LazyCatalogImages Magento Module

Build Status

This module (LCI) is meant to provide URLs for images that contain enough information to render the image at a later point in time. The current system pre-renders images and front-loads that overhead into the initial page render process. Additionally, if the image cache is flushed and a page is cached with the old image URLs, then the images will be broken. LCI changes all URLs generated by the catalog/image helper to contain the full set of parameters to build an image and signs the parameters with a SHA265 hash to prevent tampering by end-users.

The actual rendering of the images is handled via the /lci.php and /media/catalog/product/LCI/.htaccess combo. The .htaccess file will rewrite requests for non-existent files to be serviced by /lci.php. The entrypoint, lci.php, passes the full URL pathinfo to the image helper. The image helper attempts to extract a token from the pathinfo and checks if the token is valid and should be processed. At the early stage of token decoding a failure results in a 404 response. At later stages, after the token is decoded, a failure results in a redirect to a placeholder image.

License

OSL v3.0

Contributors
Compatability
TODO
Disclaimer

This module is experimental and not guaranteed to work.


This work is supported by the National Institutes of Health's National Center for Advancing Translational Sciences, Grant Number U24TR002306. This work is solely the responsibility of the creators and does not necessarily represent the official views of the National Institutes of Health.