Tag:Static state

  • Asp.net core caching static resource example details


    background Caching static resources such as stylesheets, JavaScript, or image files can improve the performance of your site. On the client side, a static file is always loaded from the cache, which can reduce the number of requests to the server, thus reducing the time to get the page and its resources. On the server […]

  • Which caches will be experienced from the user input URL


    According to the start of an HTTP request initiated by the user, those caches will be experienced. User level DNS DNS system local cache (client operating system DNS cache) Localdns cache (local DNS provider’s cache) DNS cache server (dedicated DNS cache server) Browser DNS caching (Firefox default 60 seconds, new feature of HTML5: DNS prefetching) […]

  • Getting started with C – global variables


    1、 Global variable Variables defined outside functions are global variables Global variables have global lifetime and scope They are independent of any function and can be used inside any function #include int f(void); //Global variable int gALL = 12; int main(int argc, char const *argv[]) { printf(“in %s gALL=%d\n”, __func__,gALL); f(); printf(“agn in %s gALL=%d\n”, […]

  • Goweb – handling static resources


    Working with static files For static files such as CSS and JS in HTML pages, you need to use the following under net / HTTP packageMethod to handle 1) Stripprefix function2) Fileserver function 3) for example: http.Handle(“/static/”, http.StripPrefix(“/static/”, http.FileServer(http.Dir(“views/static”)))) /static/Will match to/static/Development path, when browser requestsindex.htmlIn the page style.csS file,staticThe prefix will be replaced withviews/staicAnd […]

  • The implementation of group chat function with websocket


    What is websocket WebSocketIt is a new way of communication between web client and server, which is still based on HTTP protocol. With websocket connections, web applications can perform real-time interaction, rather than the previous poll mode. WebSocketHTML5 started to provide a full duplex communication protocol on a single TCP connection, which can be used […]

  • Understanding and research of block


    Preface I have been using block, but I don’t know what block is. This article is for learning and recording. Catalog Declaration of block Internal implementation of block Understanding of block circular reference The type of block, why use copy decoration Declaration of block Declare a block Return type (^ name) (parameter list) = ^ […]

  • Android.mk syntax description


    Copyright notice: This article was originally published on the following website. You can reprint it freely, but you must add a complete copyright notice Blog Park: https://www.cnblogs.com/mogoostudio/CSDN blog: https://blog.csdn.net/nmjkl001/Zhihu: https://www.zhihu.com/people/mogoostudio/Jianshu: https://www.jianshu.com/u/9547c81ca54e segmentfault:https://segmentfault.com/u/mogoostudio Route MY_LOCAL_PATH := $(call my-dir) LOCAL_PATH := $(MY_LOCAL_PATH) MY_SOURCE_PATH := $((LOCAL_PATH)../../../code/source) Static library include $(CLEAR_VARS) LOCAL_MODULE := liblive2d LOCAL_SRC_FILES := ../../../hero_external/Live2d/android/$(TARGET_ARCH_ABI)/liblive2d.a include $(PREBUILT_STATIC_LIBRARY) […]

  • Want to realize “online excel” of multi person collaboration? It’s not that easy


    This article was created and launched by the technical team of grape City Reprint please indicate the source: grapevine official website, grapevine provides professional development tools, solutions and services for developers, enabling developers.   Excel is a common tool in our office. It can handle most of our data. Friendly interactive interface, rich formula functions […]

  • Install nginx in docker


    Sketch Nginx is a network server that can also be used as a reverse proxy, load balancer, mail broker, and HTTP cache. The software was created by Igor sysoev and first released in 2004. As of August 2019, NetCraft estimates that nginx serves 32% of all active sites, ranking second only to Apache. Installation record […]

  • Summary of java knowledge points (2)


    array One-dimensional array statement Data type [] array name; Data type array name []; Allocation space Array name = new data type [array length]; Space can be allocated at the same time of declaration. Data can only be placed in the array after space allocation. Array elements are accessed through subscripts. The array length cannot […]

  • Web pack multi page Application Architecture Series (16): make good use of browser cache, go when you need to go, stay when you need to stay


    This article starts fromArray_HuangTechnology blog——Practical supremacy, please do not reprint without the permission of the author.Original address:https://segmentfault.com/a/1190000010317802If you are interested in this series of articles, please follow and subscribe here:https://segmentfault.com/blog/array_huang Preface A mature project is naturally inseparable from iterative update; then in the front-end deployment, we have to always take into account the browser cache. […]

  • The second round of Web cache exploration: actual combat


    Preface We talked about some basic knowledge and Strategies of Web cache in the first game of Web cache exploration.Second, let’s talk about how to actually configure in the project. actual combat Since BBQ is a front-end package, let’s start with HTML and node HTML — add meta tags to the header Of course, according […]