Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8271459
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 8, 20262026-06-08T06:51:05+00:00 2026-06-08T06:51:05+00:00

Probably a bit of general question, even tho’ it’s specific to a certain type

  • 0

Probably a bit of general question, even tho’ it’s specific to a certain type of website/application, but will give it a shot regardless. I’m a bit confused wether or not I should be caching my thumbnails for my current project, normally I would, but I’m not sure about this project. I’ll explain my situation better to give a better understanding.

I have a stock photo website, for celebrity, news and sport photos, that show authorised clients (newspapers & magazines) our entire library. These photos have some value and I have gone to great measures to ensure the larger photos are either hidden on Amazon S3, or above the root directory, with expiring and hashed links, so I don’t want to jeopardize my photos by adding a cache when I shouldn’t be or adding an incorrect cache. A typical user may search for a photo and never see it again or they might save a photo to their favorites and see it twice-daily. A user could also browse 10,000 photos in a couple of minutes.

My question is; should I have no cache at all or have a limited cache, for say, 1 hour, or 1 day? If I set a cache expiry for a photo, will that be accessible to my client on their browser, under say ‘cached images’? Is there any other security issues with caching valuable photos?

I know about screen-grabbing, printing and the rule; if you don’t want it stolen, don’t put it on the web, but I want to do the best I can in my application for security and speed.

I’m using PHP (5.2.17) for loading images from Amazon to my client’s browser using PHP’s ReadFile() and IMG elements like <img src="loadImage.php?p=2342dfsfsdfwf2dfsf">.

To clarify what type of caching:

<?php
header("Expires: Sat, 26 Jul 1997 05:00:00 GMT");
header("Content-Type: image/jpeg");
readfile($url);
?>
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-08T06:51:06+00:00Added an answer on June 8, 2026 at 6:51 am

    If you are extremely concerned about the security of the images, then I would say do not cache them at the expense of using more bandwidth (and a slower loading time). If you are more concerned about bandwidth usage than security, cache them.

    However, if they are truly thumbnails, they should have little value to a user if they are small, of low quality, etc. One solution would be to watermark the images.

    In theory, it is possible to extract images from a browser’s cache (http://protechgeek.com/how-to-extract-images-from-browser-cache/), so if they are cached, they can be retrieved. Even easier, someone can screen grab as you mentioned, or right-click and copy/paste. A watermark is the only solution to this.

    tl;dr

    In my opinion, I would not think it’s worth the extra bandwidth hit and increased loading time for a minimal security increase. Use watermarks instead. There’s a reason that the majority of stock photo websites use watermarks– they are the only way to prevent someone from outright stealing the image (even though, depending on the image and watermark, it can be removed convincingly by a skilled Photoshop user)

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Probably a bit off topic question, but it's something I'm really interested in getting
I'm a bit new to Rails/RSpec/Capybara, so this is probably a newbie question, but
This is probably a bit low question, but is there any elegant way, how
The question title is probably a bit misleading, but I can't think of a
I fear this is probably a bit of a dummy question, but it has
Probably the following description of the issue I'm encountering will be a bit vague,
So this one is probably very simple, but I'm having a bit of trouble
There are a lot of similar questions, but, probably, mine is a little bit
i have a quite weird question which probably has no practical use but the
This is probably a bit of a limited, but valuable scenario. I have a

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.