Hirdetés

Keresés

Új hozzászólás Aktív témák

  • The DJ

    addikt

    válasz Sk8erPeter #4405 üzenetére

    A megoldás, amit adtam nem kapcsolja ki a cache-t, csak utasítja a böngészőt, hogy egyeztessen a szerverrel, kérdezze le történt-e változás az oldalban, ha igen, akkor újra letölti, amennyiben pedig nem, úgy a cache-ből tölti be a tartalmat. Sokan hiszik azt (tévesen), hogy ez a meta tag teljesen kikapcsolja a cache-t. Pedig valójában nem.

    "Though this directive sounds like it is instructing the browser not to cache the page, there’s a subtle difference. The “no-cache” directive, according to the RFC, tells the browser that it should revalidate with the server before serving the page from the cache. Revalidation is a neat technique that lets the application conserve band-width. If the page the browser has cached has not changed, the server just signals that to the browser and the page is displayed from the cache."

Új hozzászólás Aktív témák