In the world of Laravel Development, there are a few ways of getting this done.But when I came across this situation, I tried the following method to have a better way of handling this issue.We recommend that you use any of the latest versions of browsers on Browse Happy for optimal performance with Word Due to browser incompatibility, some themes are not fully functional in Internet Explorer 10 or earlier.Note: It is also possible for your Internet Service Provider to create a cache at the network level.This means that instead of viewing the Word web servers for some files, the ISP has created a cache to store files on their network to try to reduce bandwidth costs and also to make loading some web pages faster.The Laravel Development framework provides the Laravel Elixir which is one of Laravel’s service packages will help browsers to refresh its cache automatically after an update to any of the CSS and JS files. So, first and foremost is to Install Laravel Elixir, and for that, give the following commands on the terminal: node -v /* This is to check the node version */ /*If the node version does not load, type the commands*/ sudo apt-get update sudo apt-get install nodejs sudo apt-get install npm /* If the above commands result in the following error */ The program ‘node’ can be found in the following packages: node nodejs-legacy /*Ask your administrator to install one of them*/ /* Try the following command */ sudo apt-get install node node -v /* If still node –v returns empty on the screen, try the following command as an option*/ sudo apt-get install nodejs-legacy node -v /*If this too returns an error as below:*/ -bash: /usr/sbin/node: No such file or directory /*type the following command to rectify*/ which nodejs sudo ln -s /usr/bin/nodejs /usr/sbin/node This will install the Elixir service package for use in the Laravel Development framework./* Go to the respective project directory and run the below command from your project directory */ sudo npm install –global gulp sudo npm install /*If it gets successfully installed, node_modules directory and file will be available in project directory as*/ node_modules/ gulpfile.jssudo chmod -R 777 public/build Now, perform step 3-A or step 3-B mentioned below, based on your requirement.Type the below lines in the that was just created as part of installing Gulp. How to combine multiple CSS and JS files in to one CSS and JS file: elixir(function(mix) ); Step 3-B.
Whenever I turn on the browser cache, it effectively caches my homepage and stops showing any new posts that I make. Remember, the majority of most sites' traffic is the front page, so if you don't cache that you're losing the benefit of caching in the first place.
My inclination is to lower the HTML & XML Expires header lifetime down to something like 900 seconds (15 minutes), but I'm not 100% sure that would solve my problem here. Lowering the cache duration to something small should alleviate the problem.
It means people will wait no longer than X minutes to see new posts on the home page., for 'HTML & XML' files, the 'Cache Control Policy' should probably be 'cache with max-age and validation ("max-age=EXPIRES_SECONDS, public, must-revalidate, proxy-revalidate").
As much as it is necessary for browsers to effectively use their cache, sometimes it poses a problem.
Whenever a website is loaded for the first time the CSS and JS files are cached in the browser, and thereafter, every time the user visits those pages, the files are loaded from the cache.