create a qr code using c# and asp.net Attributes of the @OutputCache Directive in Visual C#.NET

Maker QR Code 2d barcode in Visual C#.NET Attributes of the @OutputCache Directive

Attributes of the @OutputCache Directive
Draw QR Code In Visual C#.NET
Using Barcode drawer for .NET framework Control to generate, create QR image in .NET framework applications.
www.OnBarcode.com
Decode QR Code JIS X 0510 In Visual C#.NET
Using Barcode decoder for .NET Control to read, scan read, scan image in .NET framework applications.
www.OnBarcode.com
Applies to
Bar Code Creator In C#.NET
Using Barcode maker for .NET framework Control to generate, create barcode image in Visual Studio .NET applications.
www.OnBarcode.com
Scanning Bar Code In Visual C#
Using Barcode recognizer for .NET framework Control to read, scan read, scan image in VS .NET applications.
www.OnBarcode.com
Page
Quick Response Code Drawer In Visual Studio .NET
Using Barcode generation for ASP.NET Control to generate, create QR Code ISO/IEC18004 image in ASP.NET applications.
www.OnBarcode.com
QR Code ISO/IEC18004 Maker In Visual Studio .NET
Using Barcode drawer for VS .NET Control to generate, create QR Code image in VS .NET applications.
www.OnBarcode.com
Attribute
QR Code 2d Barcode Generator In Visual Basic .NET
Using Barcode encoder for .NET framework Control to generate, create QR Code ISO/IEC18004 image in Visual Studio .NET applications.
www.OnBarcode.com
ECC200 Generation In C#
Using Barcode maker for Visual Studio .NET Control to generate, create Data Matrix ECC200 image in .NET framework applications.
www.OnBarcode.com
CacheProfile
Encode EAN / UCC - 13 In Visual C#
Using Barcode creation for Visual Studio .NET Control to generate, create EAN 13 image in Visual Studio .NET applications.
www.OnBarcode.com
Creating QR Code 2d Barcode In Visual C#.NET
Using Barcode generation for .NET Control to generate, create QR Code image in .NET applications.
www.OnBarcode.com
Description
Code 128 Code Set C Maker In C#
Using Barcode drawer for Visual Studio .NET Control to generate, create Code 128B image in Visual Studio .NET applications.
www.OnBarcode.com
Industrial 2 Of 5 Generation In C#.NET
Using Barcode creator for .NET framework Control to generate, create Code 2/5 image in VS .NET applications.
www.OnBarcode.com
Associates a page with a group of output caching settings specified in the web.config file. (More details about this appear later in the chapter.) The time, in seconds, that the page or user control is cached. Specifies the location (browser, proxy, or server) where to store the output of a page. The attribute takes its value from the OutputCacheLocation enumeration. Indicates whether to send a Cache-Control:no-store header to prevent browser-side storage of the page output. Indicates whether the user control output can be shared with multiple pages. It is false by default. Indicates a dependency on the specified table on a given SQL Server database. Whenever the contents of the table changes, the page output is removed from the cache. A semicolon-separated list of strings that represent properties of the user control. Each distinct combination of values for the specified properties will originate a distinct copy of the page in the cache.
Creating 1D In .NET
Using Barcode creator for ASP.NET Control to generate, create 1D Barcode image in ASP.NET applications.
www.OnBarcode.com
UPC Symbol Generator In None
Using Barcode generation for Microsoft Excel Control to generate, create GS1 - 12 image in Microsoft Excel applications.
www.OnBarcode.com
Duration Location
Create UCC - 12 In .NET Framework
Using Barcode encoder for .NET Control to generate, create USS-128 image in .NET framework applications.
www.OnBarcode.com
Code 128 Generation In Java
Using Barcode encoder for Eclipse BIRT Control to generate, create Code 128A image in BIRT reports applications.
www.OnBarcode.com
Page, User control Page
Barcode Reader In Java
Using Barcode Control SDK for Java Control to generate, create, read, scan barcode image in Java applications.
www.OnBarcode.com
Drawing Code 3/9 In Java
Using Barcode generation for Java Control to generate, create Code39 image in Java applications.
www.OnBarcode.com
NoStore
QR-Code Recognizer In Java
Using Barcode decoder for Java Control to read, scan read, scan image in Java applications.
www.OnBarcode.com
Bar Code Drawer In Objective-C
Using Barcode generator for iPhone Control to generate, create bar code image in iPhone applications.
www.OnBarcode.com
Page
Shared SqlDependency
User control Page, User control
VaryByControl
User control
Part IV
Infrastructure of the Application
Attribute
VaryByCustom
Applies to
Page, User control
Description
A semicolon-separated list of strings that lets you maintain distinct cached copies of the page based on the browser type or user-defined strings. A semicolon-separated list of HTTP headers. A semicolon-separated list of strings representing query string values sent with GET method attributes, or parameters sent using the POST method.
VaryByHeader VaryByParam
Page Page, User control
Note that the VaryByParam attribute is mandatory. If you omit it, a runtime exception is always thrown. However, if you don t need to vary by parameters, set the attribute to None. The empty string is not an acceptable value for the VaryByParam attribute.
Choosing a Location for the Page Output
Among other things, you use the @OutputCache directive to decide where the page output should be cached. In general, it can go in three different locations, one not necessarily excluding the other. The page can be cached on the client (the browser cache), on the IIS Web server, and even by an intermediate proxy server. The various options are listed in Table 18-9. They come from the OutputCacheLocation enumerated type.
TABLE 18-9
Output Cache Locations
CacheControl
Public
Location
Expires
Description
Set according to The page is cached everywhere, in the browser as the value of the well as in any intermediate proxy. In addition, it is duration attribute. also cached on the Web server according to the current output cache provider. Set according to The page is cached only on the browser. It is the value of the ignored by any intermediate proxy, and it is duration attribute. not processed by any output cache provider registered in the ASP.NET application. Set according to The page can be cached on the browser and the value of the by any intermediate cache-enabled proxies. It duration attribute. won t be processed by any output cache provider registered in the ASP.NET application. 1 1 Also, the Pragma header is set to No-Cache. As a result, the page is never served from any cache. Also, the Pragma header is set to No-Cache. The page is cached only by the output cache provider currently registered in the ASP.NET application.
Client
Private
DownStream
Public
None Server
NoCache NoCache Private
ServerAndClient
Set according to The page is cached on the browser, and it is also the value of the processed by the output cache provider currently duration attribute. registered in the ASP.NET application. It will be ignored by any proxy in the middle.
18
ASP.NET Caching
When the cache-control header is public, ASP.NET also emits the header max-age set to the same value as the duration attribute. Expires and max-age play the same role except that the former requires an absolute date and time (that has to be parsed by browsers and proxies), whereas the latter just indicates the number of seconds to wait. In general, when both Expires and max-age are specified, max-age wins. The value of No-Cache assigned to the cache-control HTTP header instructs the browser to check with the server as to the freshness of the page before serving it. However, in combination with Expires set to 1, it indicates that the page is stale and subsequently needs be refetched. The net effect is the same as if the page was never cached. The No-Store value, on the other hand, instructs the browser not to save the resource locally. If the page comes over HTTPS, however, it will never be cached locally. In addition to browser and proxy caches, I mentioned server-side caching. I ll return to that in a moment; for now, it suffices to say that it is yet another level of page-output caching specific to ASP.NET. A special component the page output provider will capture the output of a page and cache it somewhere on the server. The default provider caches pages inside the ASP.NET Cache object in the memory space of the worker process (and machine) that is currently serving the request. As you can see, this solution is not ideal if you have a Web farm where there s no guarantee that subsequent requests for the same page are served by the same machine. If you re running a Web farm, you might want to consider replacing the default provider with the output cache provider made available by the AppFabric Caching Services.
Copyright © OnBarcode.com . All rights reserved.