Archivi tag: cache

Pulire la cache nei vari browser

Internet Explorer 7.0

1. Click Start and select Settings, then Control Panel.
2. Double-click Internet Options.
3. Click the General tab.
4. Click Delete under the Browsing History section.
5. Click Delete Files in the Delete Browsing History dialog box.
6. Click OK and Close the window.

Internet Explorer 6.0

1. Click Start and select Settings, then Control Panel.
2. Double-click Internet Options to open Internet Properties.
3. Click Delete Files.
4. Click OK on the Delete Files dialog box.
5. Click OK.

Internet Explorer 5.0 for Mac

1. Open Internet Explorer.
2. Click Edit and select Preferences.
3. Click the arrow beside Web Browser.
4. Click Advanced.
5. Click Empty Now.
6. Click Ok.

Firefox 3

1. Click Tools and select “Clear Private Data”
2. Check the “cache” box (uncheck others if you don’t want to affect other settings).
3. Click the “Clear Private Data Now” button.

Firefox 2.0

1. Click Tools and select Options.
2. Click the Privacy icon.
3. Click Clear Now in the Private Data area.
4. Click Ok.

Firefox 2.0 for Mac

1. Open Firefox.
2. Click the Firefox menu and select Preferences.
3. Click the Advanced icon and click the Network tab.
4. Click Clear Now under the Cache section.
5. Close the window.

Firefox 1.0

1. Click Tools and select Options.
2. Click the Privacy Icon.
3. Click Clear across from the Cache option.
4. Click Ok.

Safari

1. Open Safari.
2. Select Empty Cache.
3. Click Empty when it asks you “Are you sure?”

BlackBerry (PDA)

1. Highlight the BlackBerry browser icon and click the trackwheel.
2. Click the trackwheel again to display the Browser Options menu.
3. Scroll down to Options and click the trackwheel to open the browser options screen.
4. Scroll down to General Properties and click the trackwheel to open the General Properties screen.
5. Click the trackwheel to open the Cache menu.
6. Scroll down to Clear Content Caches and click the trackwheel to clear the cache and return to the General Properties screen.
7. Use the Escape button to page back through the screens to the BlackBerry main menu.

Netscape 8

1. Click Tools and select Options.
2. Select Privacy.
3. Click Cache.
4. Click Clear.
5. Click OK.

Netscape 7

1. Click Edit and select Preferences.
2. Click the Triangle next to Advanced to expand it.
3. Click Cache.
4. Click Clear Cache.
5. Click OK.

America Online (8 & 9)

1. Click Start, select Settings and Control Panel.
2. Double-click Internet Options to open Internet Properties.
3. Click Delete Files.
4. Click OK on the Delete Files dialog box.
5. Click OK.

Evitare il caricamento delle immagini da cache con htaccess

Abbiamo già visto in un altro articolo come sia fastidiosa la cache che non si aggiorna e come si possa risolvere col Php.

C’è anche un’altra soluzione, senza dover toccare i file in Php che danno vita al sito. Il ri-caricamento di immagini (o altri file) si può forzare inserendo nel file .htaccess alcune righe. Una cosa molto utile dei file .htaccess è che possono con facilità essere inseriti in qualsiasi directory, forzando il caricamento dei soli contenuti di questa, mentre il resto del sito può continuare a funzionare come ha sempre fatto col solito sistema di cache.

Continua la lettura di Evitare il caricamento delle immagini da cache con htaccess

Evitare di memorizzare i contenuti nella cache col Php

E’ fastidioso quando qualcosa che il browser ha inserito nella cache non si aggiorna, non trovate? Refresh, F5, Ctrl+F5 … alla fine non servono a molto. Si deve svuotare la cache! Inoltre non è detto che chi naviga sul nostro sito se ne renda conto e/o sappia utilizzare bene il browser.

Il Php ha provato a introdurre un aiuto per cercare di non far memorizzare i file nella cache. Esistono infatti degli header da inviare tramite funzione header() che in teoria dovrebbero impedire il caching delle nostre pagine:
// Data passata
header("Expires: Mon, 26 Jul 1997 05:00:00 GMT");
header("Cache-Control: no-cache");
header("Pragma: no-cache");

Vari utenti però affermano che per le immagini c’è poco da fare: vengono messe in cache comunque.

Continua la lettura di Evitare di memorizzare i contenuti nella cache col Php