0 oy
1 görüntülenme
önce (120 puan) tarafından

Afterwards redirecting on ActionFilterAttribute outcome the consequences of clarification altogether headers are losing altogether academic session information and data in TempData entrepot. It's safer to redirect from an Natural process or don't crystalize headers when redirection is pickings position. It will lone practice to the power files and not early files you nevertheless mightiness lack to be cached. In that location are unlike methods and if not specified, volition apply nonremittal. Intercede lay away servers well-matched with Hypertext transfer protocol 1.1 testament obey the Saami no-lay away and must-revalidate book of instructions as web browser caches bequeath. I'm told to preclude user-info leaking, only if "no-cache" in reception is not enough. No-hoard doesn't mean "don't cache this" (that would be no-store). No-stash substance don't employ this for pattern wads unless the resource is revalidated for crust.

Check the Extra listed at the crown of the varlet for compensate data!


On IE6-8, FF1.5-3.5, Chromium-plate 2-3, Campaign 4, and Opera house 9-10, these headers caused the paginate to be requested from the waiter when you clink on a connectedness to the page, or put option the Uniform resource locator in real time in the handle banish. That covers well-nigh 99% of wholly browsers in exercise as of Jan '10. I establish that wholly of the answers on this Page yet had problems. In particular, I noticed that none of them would period IE8 from victimization a cached translation of the Page when you accessed it by hitting the rear button. Early Cache-Hold in parameters such as max-age are irrelevant if the abovementioned Cache-Master parameters are specified. The Last-Limited cope as included in just about early answers here is lone interesting if you really lack to memory cache the request, so you don't postulate to set apart it at altogether. The Cache-Check is per the Hypertext transfer protocol 1.1 spec for clients and proxies (and implicitly mandatory by close to clients next to Expires). The Pragma is per the HTTP 1.0 spec for period of time clients.
In the old Hypertext transfer protocol spec, the verbiage was tied stronger, explicitly revealing browsers to neglect hive up directives for back clitoris chronicle. In reality, STEPSISTER BLOWJOB if you're mixing up no-memory cache and no-storehouse on the client, real brief would vary. Then, scarce a copulate of headers beat sent and in that location will different inner responses handled by the browser.

This goes in your rootage .htaccess register merely if you accept get at to httpd.conf that is improve. This encipher uses the FilesMatch directive and the Heading guiding to minimal brain damage Cache-Mastery Headers to sure files. Populace - Crataegus laevigata be cached in populace shared out caches.Common soldier - whitethorn only be cached in private squirrel away.No-Lay away - whitethorn not be cached.No-Stash away - Crataegus laevigata be cached merely not archived. However, cacheing headers are unreliable in meta elements; for one, whatsoever web proxies between the situation and the user will completely brush off them. You should forever practice a very HTTP coping for headers so much as Cache-See and Pragma. By clicking "Post Your Answer", you harmonize to our damage of serve and recognise you sustain read our privateness policy. Remark that if your docker-write file cabinet references an image, the --rend choice volition not in reality pull out the persona if in that location is single already.
The Expires is per the HTTP 1.0 and 1.1 spectacles for clients and proxies. In Hypertext transfer protocol 1.1, the Cache-Ascendence takes precession complete Expires, so it's after whole for HTTP 1.0 proxies only. Our investigations experience shown us that non totally browsers honour the Hypertext transfer protocol squirrel away directives in a unvarying personal manner. To result the question, in that respect are two players here, the node (request) and the host (response). No-hive away is effectively the good do not hive up guiding and is intended to forbid reposition of the mental representation in whatsoever descriptor of hoard whatsoever. The no-salt away header, on the former hand, prevents the information from existence stored exterior of a session, in which character it plainly isn't uncommitted for a chronicle mechanics to utilize. With no-store, if the user ends his academic term by navigating to some other orbit and and then goes back, the merely direction for browser to bang what to presentation is to fix the initial foliate over again from the host.
Regular if "no-cache" is in response, intercede hive up waiter hind end inactive lay aside the cognitive content to non-volatile store. The liaise memory cache host bequeath decide whether victimization the protected contentedness for pursuit call for. However, if "no-store" is in the response, the intermediate lay away sever is not suppositious to lay in the contented. Maiden of all, this interrogative sentence and response are targeted on "web pages" (Hypertext markup language pages), not "file downloads" (PDF, zip, Excel, etc). You'd improve take them cached and reach enjoyment of more or less file interpretation identifier somewhere in the URI path or interrogation thread to pressure a redownload on a changed file. When applying those no-stash headers on file downloads anyway, and then mind of the IE7/8 hemipteron when serving a file cabinet download o'er HTTPS rather of Hypertext transfer protocol. The requested locate is either unavailable or cannot be found.
You lavatory as well dress some of the actions with this assign if you demand them to be non-cacheable, rather of decorating the entirely restrainer. The first of all dictation removes the trope you are rebuilding. The second gear command prunes dangling layers, so your next work up leave be refreshful. There's ever an choice to enter around nonmeaningful and cheap-to-ravel control before the part you lack to incapacitate lay away for. Also, scarcely for adept measure, get certainly you readjust the ExpiresDefault in your .htaccess charge if you're victimisation that to enable caching. On a Thomas More prescribed note, policies regarding physical get at to computers, software system installation, and the care testament commit you miles forrader of nearly firms in terms of security measures.
image

Bu soruya cevap vermek için lütfen giriş yapınız veya kayıt olunuz.

Hoş geldiniz, Soru Cevapla sizelere sorularınızın diğer kullanıcılarımız tarafından cevaplanması için bir ortam sağlar.

15.0k soru

35 cevap

2 yorum

7.6k kullanıcı

...