English 中文(简体)
用户侧面图
原标题:Image caching on Client Side

I m有一台可检索服务器档案系统的图像的手稿。 我需要在客户(浏览器)旁收集这些图像。 如果是这样的话,则采取下列法规:

        context.Response.Clear()
        context.Response.ClearHeaders()
        context.Response.ClearContent()
        Dim ImageCacheExpiry = ConfigurationManager.AppSettings("ImageCacheExpiryDuration")
        context.Response.Cache.SetCacheability(HttpCacheability.Private)
        context.Response.Cache.SetExpires(DateTime.Now.AddHours(ImageCacheExpiry))
        context.Response.Cache.VaryByParams(DisplayImage.FileName) = True
        context.Response.Cache.SetLastModified(DisplayImage.DateModified)
        context.Response.AddHeader("Content-Disposition", "inline; filename=" & DisplayImage.FileName)
        context.Response.ContentType = DisplayImage.MimeType
        context.Response.BinaryWrite(DisplayImage.ImageBytes)
        context.Response.Flush()
        context.Response.Close()
        context.Response.End()
    DisplayImage is the object that is having all the data of images like
    DisplayImage.Filename, DisplayImage.FilePathandName, DisplayImage.MimeType etc

...... 当两条之间开关时,会把它从海滩上取走,但当一只打上浏览器时,它会再次进入服务器上的档案系统...... 请告诉我,如何在客户方面收集这些图像。

P.S.:在我提出申请的所有页上都标注。

预祝......。

问题回答

视浏览器和浏览器环境而定,您的浏览器可能会发出一项“待更新”要求,以了解附卡数据是否被搁置。 http://www.fiddler2.com/“rel=“nofollow”>Fiddler准确列出您的浏览器(和您的服务器)。 你可能需要处理此事,并交回304名(未修改)负责人。





相关问题
Anyone feel like passing it forward?

I m the only developer in my company, and am getting along well as an autodidact, but I know I m missing out on the education one gets from working with and having code reviewed by more senior devs. ...

NSArray s, Primitive types and Boxing Oh My!

I m pretty new to the Objective-C world and I have a long history with .net/C# so naturally I m inclined to use my C# wits. Now here s the question: I feel really inclined to create some type of ...

C# Marshal / Pinvoke CBitmap?

I cannot figure out how to marshal a C++ CBitmap to a C# Bitmap or Image class. My import looks like this: [DllImport(@"test.dll", CharSet = CharSet.Unicode)] public static extern IntPtr ...

How to Use Ghostscript DLL to convert PDF to PDF/A

How to user GhostScript DLL to convert PDF to PDF/A. I know I kind of have to call the exported function of gsdll32.dll whose name is gsapi_init_with_args, but how do i pass the right arguments? BTW, ...

Linqy no matchy

Maybe it s something I m doing wrong. I m just learning Linq because I m bored. And so far so good. I made a little program and it basically just outputs all matches (foreach) into a label control. ...

热门标签