Skip to main content
May 6, 2012
Question

Caching static content

  • May 6, 2012
  • 2 replies
  • 577 views

Hi,

i was searching and searching but i never got a clear answer!!

i want to enable static (images, css, js) browser caching.. How do i do that???

Cfheader or some meta tag? Plz help

    This topic has been closed for replies.

    2 replies

    BKBK
    Community Expert
    Community Expert
    May 6, 2012

    zero.sequence wrote:

    i want to enable static (images, css, js) browser caching.. How do i do that???

    You shouldn't expect to configure the browser from the web end. Control of the browser is not in your hands. That is the responsibility of the client

    In any case, you normally don't have to enable browser caching. All browsers are designed to cache web pages, images, CSS and JS by default. If they didn't, there would be no World Wide Web! In fact, the relevant question often asked is how to instruct the browser not to cache.

    Inspiring
    May 6, 2012

    Non-CF requests are not handled by CF, thery're handled by the web server.  In my experience, the caching of image, css and js files happens automatically.  If you're not experiencing that, I recommend hitting a forum specific to your web server (eg: an IIS forum, or an Apache forum, etc...).

    --

    Adam