ExpressionEngine CMS
Open, Free, Amazing

Thread

This is an archived forum and the content is probably no longer relevant, but is provided here for posterity.

The active forums are here.

Images aren’t caching

September 05, 2008 12:45pm

Subscribe [3]
  • #1 / Sep 05, 2008 12:45pm

    Jack McDade

    425 posts

    Okay so i’ve finally migrated my site to the live server and aren’t working locally anymore. The site now seems to be having issues with caching images. I’ve contacted my host (eleven2) and they said it’s not on their end. Now they have some issues with customer support (sometimes there is none), so i don’t know if they’re blowing it off or if it’s something in my code/settings.

    Here’s the url: http://65.38.103.143/~wesley

    The biggest culprit is the images/bg_subpage.jpg on each subpage. It won’t cache and reloads on every page. That’s pretty annoying. I’ve tried hardcoding the image link, turning all my templates cache on… not sure what to do here.

    What have I not tried yet? Any ideas?

    p.s. Yes, this is a fugly looking site. I inherited this project at my new job and well… let’s just say it’s not a portfolio piece 😝

  • #2 / Sep 05, 2008 12:49pm

    Lisa Wess

    20502 posts

    Images are held directly on the file-server and simply called by ExpressionEngine, so ExpressionEngine’s caching won’t work on them as such.  Is that what you are expecting?

    And moving to tech support for ya. =)

  • #3 / Sep 05, 2008 12:49pm

    Mark Bowen

    12637 posts

    Hi Jack,

    I’m pretty sure that any caching controls that are present in ExpressionEngine are only really meant for the template code or SQL queries that are made throughout your site. Any images or other external assets don’t get cached by ExpressionEngine.

    Best wishes,

    Mark

  • #4 / Sep 05, 2008 12:50pm

    Jack McDade

    425 posts

    Not sure… maybe this should be in the HTML/CSS forum, but i’ve never had the issue of my background images not caching before, and wasn’t sure if it was an EE controlled thing, host settings or something else entirely. Thanks for the quick response! Anyone have some ideas?

  • #5 / Sep 05, 2008 12:53pm

    Mark Bowen

    12637 posts

    I would love to know how many seconds you beat me by on that one Lisa? 😉

  • #6 / Sep 05, 2008 12:59pm

    Lisa Wess

    20502 posts

    Jack,

    I moved this to the Technical Support forum because I thought you might be misunderstanding ExpressionEngine caching which won’t effect images in the file-system.

    Images may go in your browser cache, but as far as I am aware, they’ll not be in a server-side cache of any sort.  At least, I’ve not heard of that, though there may be technologies for it. =)

  • #7 / Sep 05, 2008 1:07pm

    Jack McDade

    425 posts

    Yeah it’s a weird situation! I’ve tried it in multiple browsers on multiple computers and those images just aren’t caching. Other sites i’ve done—no prob. Every other site on the internet—no prob. Never been a problem before! I’m stumped.

  • #8 / Sep 05, 2008 1:10pm

    Lisa Wess

    20502 posts

    Where are you expecting it to cache, Jack? In your browser? What if you view it directly?

    At this point yes, it’s not technical support.  It does seem all out weird, though.  I can’t say I’ve ever seen it before. Have you tried clearing your browser cache to give it a good kick?

  • #9 / Sep 05, 2008 1:13pm

    Jack McDade

    425 posts

    Sure have. I want it to cache in my browser (Firefox 3 - mac, or Safari). Every page i hit on the site, it reloads that damn image. I feel like a noob! Maybe it’s my machine(s)...

  • #10 / Sep 05, 2008 1:14pm

    Jack McDade

    425 posts

    Ironically, i can’t seem to refresh THIS page to see the new comments as my email has notified me…

  • #11 / Sep 05, 2008 1:17pm

    Lisa Wess

    20502 posts

    Jack, I’m not really sure why that might be happening, but I’m going to move this up to uh… General again.  Heh, see if anyone else has had this problem.

  • #12 / Sep 05, 2008 1:18pm

    Jack McDade

    425 posts

    Is it possible that something in the EE templating system is causing the browser to see each URL as new so it thinks it hasn’t cached the image?

  • #13 / Sep 06, 2008 4:16pm

    grrramps

    2219 posts

    I assume you’ve checked your templates to see if they’re set to cache?

    Wierd. The page (template) is simply calling an image which the server should send to the browser, but the same image should go only once. What browser? What PC?

.(JavaScript must be enabled to view this email address)

ExpressionEngine News!

#eecms, #events, #releases