Tutorial :is it better to avoid using beestings?



Question:

I think beestings change the html every time.

this means html is not able to be cached.

am I right?


Solution:1

I assume that by beesting, you mean some sort of random number in the URL.

Yes this will (usually) stop caching of pages. Some browser may still cache some or all of the page.

As to whether not to avoid it. Would caching a page stop it working as it should? If your page has fairly random content or content the changes often, users would not see this if the page is cached.

If you can avoid the need to stop caching, pages will be able to load faster. Which makes for a happy user.


Solution:2

Old, old question, but anyway... no. You actually can "cache some or all of the response generated by an ASP.NET page, referred to in ASP.NET as output caching". You can read more at this Microsoft page.

For those still wandering, bee stings are special tags used in Microsoft's asp.NET to hold server-side code, much like PHP would do. It is, or was, very common to keep simple code inline, although having significant amount of code in bee stings is considered a bad practice by Microsoft themselves.

But as a rule, yeah, it can be cached.


Note:If u also have question or solution just comment us below or mail us on toontricks1994@gmail.com
Previous
Next Post »