Visualizzazione dei risultati da 1 a 4 su 4

Discussione: Cache e immagini

  1. #1

    Cache e immagini

    Salve,
    qualcuno mi sa spiegare come mai il tag <meta HTTP-EQUIV="Pragma" CONTENT="no-cache"> non evita il caricamento delle immagini?

    Ho una pagina dinamica che carica un'immagine che ha sempre lo stesso nome e purtroppo viene visualizzata sempre la prima. Nella cache l'immagine c'è, mentre la pagina non c'è.

    Grazie.
    Christian
    www.androgino.it

  2. #2
    Utente di HTML.it
    Registrato dal
    Dec 2001
    Messaggi
    3,259
    non lo ho mai capito. Ho capito però che quei meta tag non servono a un tubazzo

  3. #3
    Utente di HTML.it
    Registrato dal
    Dec 2000
    residenza
    Savona
    Messaggi
    897
    Io ho avuto lo stesso problema, risolto alla grande così:

    'Evito la memorizzazione in cache/proxy della pagina
    response.expires = -1500
    response.AddHeader "PRAGMA", "NO-CACHE"
    response.CacheControl = "PRIVATE"

    'Prosegue la pagina Asp / html


    Ciao,
    dover

  4. #4
    boolbo
    Guest
    Prova questo:

    <META HTTP-EQUIV="CACHE-CONTROL" CONTENT="NO-CACHE">

    oppure leggi qui:
    http://www.i18nguy.com/markup/metatags.html

    Ma soprattutto qui, zio Bill ci spiega perchè il no-cache non funzia come si pensa:
    http://support.microsoft.com/default...b;EN-US;222064

    Estratto:

    "Pragma: No-cache" Tag May Not Prevent Page from Being Cached

    SYMPTOMS
    When you use the <HTTP-EQUIV="PRAGMA" CONTENT="NO-CACHE"> metatag in the header section at the beginning of an HTML Web page, the Web page may still be cached in the Temporary Internet Files folder.

    CAUSE
    A page that Internet Explorer is browsing is not cached until half of the 64 KB buffer is filled. Usually, metatags are inserted in the header section of an HTML document, which appears at the beginning of the document. When the HTML code is parsed, it is read from top to bottom. When the <HTTP-EQUIV="PRAGMA" CONTENT="NO-CACHE"> metatag is read, Internet Explorer looks for the existence of the page in cache at that exact moment. If it is there, it is removed.

    RESOLUTION
    To properly prevent the Web page from appearing in the cache, place another header section at the end of the HTML document. For example:

    codice:
    <HTML>
    <HEAD>
    <META HTTP-EQUIV="REFRESH" CONTENT="5">
    <TITLE> Pragma No-cache </TITLE>
    </HEAD>
    
    <BODY>
    This is an example of where to place the second header section
    
    so that the "Pragama, No-Cache" metatag will work as it is supposed to.
    
    </BODY>
    <HEAD>
    <META HTTP-EQUIV="PRAGMA" CONTENT="NO-CACHE">
    </HEAD>
    </HTML>
    MORE INFORMATION
    Note that the <HTTP-EQUIV="PRAGMA" CONTENT="NO-CACHE"> metatag does not work with Internet Explorer 5.

Permessi di invio

  • Non puoi inserire discussioni
  • Non puoi inserire repliche
  • Non puoi inserire allegati
  • Non puoi modificare i tuoi messaggi
  •  
Powered by vBulletin® Version 4.2.1
Copyright © 2025 vBulletin Solutions, Inc. All rights reserved.