Posts

Showing posts with the label Web

Chrome - Disable Cache For Localhost Only?

Image
Answer : You can certainly prevent all your file from hitting the cache, but this is an all-or-nothing setting. You can't decide which files get cleared from the cache and which files stay in the cache. During development, since you are using Chrome, I'd recommend to enable the setting for "Disable cache (while DevTools is open)": If you are like me, cache will be disabled every time you have the DevTools panel opened. Another thing you can do is to instruct your server to bypass cache altogether for all your resources. Since jQuery is coming from a CDN, this no-cache setting won't apply for it. To disable cache for resources you can include the following response header: Cache-Control:no-cache, no-store In the browser, use this to refresh the page: Ctrl + Shift + R this will ignore the cache (whereas Ctrl+r will use the cache). yw :) If you are using Apache you can disable cache on your server (localhost) by placing .htaccess file into your htd...

Chmod 777 To A Folder And All Contents

Answer : If you are going for a console command it would be: chmod -R 777 /www/store . The -R (or --recursive ) options make it recursive. Or if you want to make all the files in the current directory have all permissions type: chmod -R 777 ./ If you need more info about chmod command see: File permission If by all permissions you mean 777 Navigate to folder and chmod -R 777 . You can give permission to folder and all its contents using option -R i.e Recursive permissions. But I would suggest not to give 777 permission to all folder and it's all contents. You should give specific permission to each sub-folder in www directory folders. Ideally, give 755 permission for security reasons to the web folder. sudo chmod -R 755 /www/store Each number has meaning in permission. Do not give full permission. N Description ls binary 0 No permissions at all --- 000 1 Only execute --x 001 2 Only write ...