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

Perl - how to grep a block of text from a file -

delphi - How to remove all the grips on a coolbar if I have several coolbands? -

javascript - Animating array of divs; only the final element is modified -