symfony - Understanding PHP caching - what happens to JavaScript? - using Symfony2 -


i'm trying understand php caching. i'm using symfony 2 , trying together.

image gateway cache or reverse proxy cache caches full page. how javascript affected this?

so imagine had page changed (maybe once week) - cache week. imagine had javascript function did on page, collapsible script. imagine default html shows panels open, , js remembers value in local storage , after page load closes panels need (remembering state). how affect caching?

so me best way html cached , js gets executed afterward anyway (and no doubt js files cached). or sort of take screenshot , if page cached half collapsible panels open , half closed (until cache cleared).

i'm trying work out if esi better, or how should create able utilise caching still keep dynamic features. best way cache html , allow js, css , else run again cached js/css file, whatever is.

any caching how data gets server client (e.g. web browser); has nothing how data interpreted client. (think of slow php script outputs text file; text file used irrelevant, slow php avoiding cache.)

you cannot cache on-screen rendering of html page, because rendering entirely browser's job (hence why different browsers may render things differently). execution of js rendering html - part of browser's interpretation of content.

so answer question caching make no difference js whatsoever.


Comments

Popular posts from this blog

c++ - Function signature as a function template parameter -

algorithm - What are some ways to combine a number of (potentially incompatible) sorted sub-sets of a total set into a (partial) ordering of the total set? -

How to call a javascript function after the page loads with a chrome extension? -