简体   繁体   中英

Response.Filter making multiple calls to Write()?

For some time I am using custom Response.Filter for rewrite purposes. Since I never tested this module, I decided to run a few tests and spotted something I did not expect.

I realized that pages are written to stream using multiple calls to Write().

So does it mean that my rewrite logic is being called multiple times for the same chunk of html or html is actually divided in partitions?

Please help me understand how Write() works.

Pages are written in chunks.

Each chunk is sent trhough your filter exactly once.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM