View Single Post
Old 09-18-2017, 10:46 AM  
Barry-xlovecam
It's 42
 
Industry Role:
Join Date: Jun 2010
Location: Global
Posts: 18,083
It might be just easier to spend another $20/mo and expand the server's resources?

Quote:
Does deflate also affect images from external resources?
NO
that is a remote server you cannot control.

use

$ sed 's/\.min//g'
test it first
then sed -i.bk
-i [in place edit].bk [.bk backupfile]

I like to make a backup directory with copies in case I fuck-up
Code:
$ mkdir backedup; cp * backedup
you will need the file paths
Code:
$ find . -name "*.min.js"
or
Code:
$ find . -name "*.js" -o  -name "*.min.js"
find . is recursive so start in the right location near just above the files.

to find script references
is recursive so start in the right location near just above the files.
Code:
$ grep -rni '.js'
JavaScripts are generally cashed in browsers -- their requests are 304 usually after the first visit -- certainly per session. Exceptions being deleted user cache files and private/incognito sessions.
Barry-xlovecam is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote