Hi,
I need to load almost 100's of images in a single page on my website. ( product image, lots of them ). Whenever image change for product, url for that image also changes. i.e. for one url corresponding iamge never changes. Now I want to make sure that for a same person browsing through website, the image must not load again.
Is expire header is good enough ? ( sometime the browser still try to load it when refreshed manually )
on server side my python script always return 304 when if modified since header available without checking its value as each image has unique url. It normally works good but sometime when images are partially loaded and user move to another page, user see half downloaded images next time he land on the same page as server return 304. so how reliable if modified since header is ? and what are other alternative ?
Thanks.
edit 2:
what should be the content length for 304 response ? should it be the original content or actual content ( i.e. 0 ) ??