Netgate Discussion Forum
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Search
    • Register
    • Login

    Local Cache Issue and Time Cards

    Scheduled Pinned Locked Moved Cache/Proxy
    1 Posts 1 Posters 437 Views 1 Watching
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • JonathanLeeJ Offline
      JonathanLee
      last edited by JonathanLee

      Hello Fellow Netgate Community,

      I am having an issue where a website will not load the new time cards and information because of my cache running and https caching.

      What would cause this? The watermark settings?

      This has a new timecard accessible inside of a smart phone or a system offline of my firewall's proxy.

      However on the proxy it only loads the older time cards.

      0418a764-971c-4c44-b878-149206b3846b-image.png

      this is my cache settings:

      e5d39b85-0e7e-44b0-bd79-914f1c0e4cba-image.png

      #WINDOWS
      refresh_pattern -i windowsupdate.com/..(cab|exe|dll|ms[i|u|f|p]|[ap]sf|wm[v|a]|dat|zip|psf) 43200 80% 129600 reload-into-ims
      refresh_pattern -i microsoft.com/.
      .(cab|exe|dll|ms[i|u|f|p]|[ap]sf|wm[v|a]|dat|zip|psf) 43200 80% 129600 reload-into-ims
      refresh_pattern -i windows.com/..(cab|exe|dll|ms[i|u|f|p]|[ap]sf|wm[v|a]|dat|zip|psf) 43200 80% 129600 reload-into-ims
      refresh_pattern -i microsoft.com.akadns.net/.
      .(cab|exe|dll|ms[i|u|f|p]|[ap]sf|wm[v|a]|dat|zip|psf) 43200 80% 129600 reload-into-ims
      refresh_pattern -i deploy.akamaitechnologies.com/..(cab|exe|dll|ms[i|u|f|p]|[ap]sf|wm[v|a]|dat|zip|psf) 43200 80% 129600 reload-into-ims
      refresh_pattern -i msedge.b.tlu.dl.delivery.mp.microsoft.com/.
      .(cab|exe|dll|ms[i|u|f|p]|[ap]sf|wm[v|a]|dat|zip|psf) 43200 80% 129600 reload-into-ims

      #FACEBOOK
      refresh_pattern ^http.facebook.com. 720 100% 4320

      #FACEBOOK IMAGES
      refresh_pattern -i pixel.facebook.com..(jpg|png|gif|ico|css|js) 241920 80% 241920
      refresh_pattern -i .akamaihd.net..(jpg|png|gif|ico|css|js) 241920 80% 241920
      refresh_pattern -i ((facebook.com)|(85.131.151.39)).(jpg|png|gif) 241920 99% 241920 store-stale
      refresh_pattern static.(xx|ak).fbcdn.net.(jpg|gif|png) 241920 99% 241920
      refresh_pattern ^http.profile.ak.fbcdn.net.(jpg|gif|png) 241920 99% 241920

      #FACEBOOK VIDEO
      refresh_pattern -i .video.ak.fbcdn.net.*.(mp4|flv|mp3|amf) 10080 80% 43200
      refresh_pattern (audio|video)/(webm|mp4) 129600 99% 129600 store-stale
      #refresh_pattern -i ^http.squid.internal. 241920 100% 241920 store-stale

      #YAHOO
      refresh_pattern ^http.mail.yahoo.com. 720 100% 4320
      refresh_pattern ^http.yahoo. 720 100% 4320
      refresh_pattern ^http.yimg. 720 100% 4320

      #apple update
      refresh_pattern -i apple.com/..(cab|exe|msi|msu|msf|asf|wmv|wma|dat|zip|dist)$ 0 80% 43200 refresh-ims
      #refresh_pattern -i (download|adcdownload).apple.com/.*.(pkg|dmg) 4320 100% 43200
      refresh_pattern -i appldnld.apple.com 129600 100% 129600
      refresh_pattern -i phobos.apple.com 129600 100% 129600
      refresh_pattern -i iosapps.itunes.apple.com 129600 100% 129600

      #GOOGLE STUFF
      refresh_pattern ^http.gmail. 720 100% 4320
      refresh_pattern ^http.google. 720 100% 4320

      #AntiVirus
      refresh_pattern ^http.kaspersky. 43200 100% 43200
      refresh_pattern ^http.geo.kaspersky.com. 43200 100% 43200
      refresh_pattern kaspersky.*.avc$ 43200 100% 43200
      refresh_pattern kaspersky 43200 100% 43200

      #Office/Windows
      refresh_pattern ^http.officecdn.microsoft.com. 43200 100% 43200
      refresh_pattern ^http.officecdn.microsoft.com.edgesuite.net. 43200 100% 43200
      refresh_pattern ^http.delivery.mp.microsoft.com/filestreamingservice/files. 43200 100% 43200
      refresh_pattern ^http.download.windowsupdate.com. 43200 100% 43200
      refresh_pattern ^http.download.windowsupdate.com/. 43200 100% 43200
      refresh_pattern ^http.au.download.windowsupdate.com/. 43200 100% 43200
      refresh_pattern ^http.tlu.dl.delivery.mp.microsoft.com/filestreamingservice/files. 43200 100% 43200

      #Website
      refresh_pattern -i (.|-)(xml|js|jsp|txt|css)(?.*)?$ 360 40% 1440
      #end new refresh patterns

      refresh_pattern .(ico|video-stats)$ 129600 100% 129600

      #MISC FILE CACHING HERE
      refresh_pattern -i .(3gp|7z|ace|asx|avi|bin|cab|dat|deb|rpm|divx|dvr-ms)(?|$) 43800 100% 129600
      refresh_pattern -i .(rar|jar|gz|tgz|tar|bz2|iso)(?|$) 43800 100% 129600
      refresh_pattern -i .(m1v|M2V|M2P|MOD|MOV|FLV)(?|$) 43800 100% 129600
      refresh_pattern -i .(jp(e?g|e|2)|gif|pn[pg]|bm?|tiff?|ico|swf|css|js)(?|$) 43800 100% 129600
      refresh_pattern -i .(mp(e?g|a|e|1|2|3|4)|mk(a|v)|ms(i|u|p))(?|$) 43800 100% 129600
      refresh_pattern -i .(og(x|v|a|g)|rar|rm|r(a|p)m|snd|vob|wav)(?|$) 43800 100% 129600
      refresh_pattern -i .(pp(s|t)|wax|wm(a|v)|wmx|wpl|zip|cb(r|z|t))(?|$) 43800 100% 129600
      refresh_pattern -i .(woff|txt|exe|dmg|webm)(?|$) 43800 100% 129600
      refresh_pattern -i .(css)(?|$) 10080 60% 43800 # CSS
      refresh_pattern -i .(js)(?|$) 10080 60% 10080 # JS
      refresh_pattern -i .(doc|pdf)(?|$) 10080 90% 43200 # DOC | PDF
      refresh_pattern -i .(html|htm)(?|$) 1440 60% 10080 # HTML | HTM
      refresh_pattern -i .(iso|avi|wav|mp3|mp4|mpeg|swf|flv|x-flv)$ 43200 90% 432000
      refresh_pattern -i .(deb|rpm|exe|zip|tar|tgz|ram|rar|bin|ppt|doc|docx|tiff)$ 10080 90% 43200
      refresh_pattern -i .(html|htm|css|js)$ 1440 40% 40320
      refresh_pattern -i .index.(html|htm)$ 0 40% 10080
      refresh_pattern -i .(ppt|pptx|doc|docx|docm|docb|dot|pdf|pub|ps)$ 100000 90% 200000 refresh-ims
      refresh_pattern -i .(xls|xlsx|xlt|xlm|xlsm|xltm|xlw|csv|txt)$ 100000 90% 200000 refresh-ims
      refresh_pattern -i .(app|bin|deb|rpm|drpm|exe|zip|zipx|tar|tgz|tbz2|tlz|iso|arj|cfs|dar|jar)$ 100000 90% 200000 refresh-ims
      refresh_pattern -i .(bz|bz2|ipa|ram|rar|uxx|gz|msi|dll|lz|lzma|7z|s7z|Z|z|zz|sz)$ 100000 90% 200000 refresh-ims
      refresh_pattern -i .(exe|msi)$ 0 90% 200000 refresh-ims
      refresh_pattern -i .(cab|psf|vidt|apk|wtex|hz|ova|ovf)$ 100000 90% 200000 refresh-ims
      refresh_pattern -i .(xml|flow|asp|aspx)$ 0 90% 200000 refresh-ims
      refresh_pattern -i .(json)$ 0 90% 200000 refresh-ims
      refresh_pattern -i .(asx|mp2|mp3|mp4|mp5|wmv|flv|mts|f4v|f4|pls|midi|mid)$ 100000 90% 200000 refresh-ims
      refresh_pattern -i .(mpa|m2a|mpe|avi|mov|mpg|mpeg|mpg3|mpg4|mpg5)$ 100000 90% 200000 refresh-ims
      refresh_pattern -i .(m1s|mp2v|m2v|m2s|m2ts|mp2t|wmx|rm|rmvb|3pg|3gpp|omg|ogm|asf|war)$ 100000 90% 200000 refresh-ims
      refresh_pattern -i .(swf|js|ejs)$ 100000 90% 200000 refresh-ims
      refresh_pattern -i .(wav|css|class|dat|zsci|ver|advcs)$ 100000 90% 200000 refresh-ims
      refresh_pattern -i .(gif|png|ico|jpg|jpeg|jp2|webp)$ 100000 90% 200000 refresh-ims
      refresh_pattern -i .(jpx|j2k|j2c|fpx|bmp|tif|tiff|bif)$ 100000 90% 20000 refresh-ims
      refresh_pattern -i .(pcd|pict|rif|exif|hdr|bpg|img|jif|jfif)$ 100000 90% 200000 refresh-ims
      refresh_pattern -i .(woff|woff2|eps|ttf|otf|svg|svgi|svgz|ps|ps1|acsm|eot)$ 100000 90% 200000 refresh-ims
      refresh_pattern -i (.|-)(mid|midi|mpg|mpeg|ram|cav|acc|alz|apk|at3|bke|arc|ass|ba|big|bik|bkf|bld|c4|cals|clipflair|cpt|daa|dmg|ddz|dpe|egg|egt|ecab|ess|gho|ghs|gz|ipg|jar|lbr|lqr|lha|lz|lzo|lzma|lzx|mbw|mc.meta|mpq|nth|osz|pak|par|par2|paf|pyk|pk3|pk4|rag|sen|sitx|skb|tb|tib|uha|uue|viv|vsa|z|zoo|nrg|adf|adz|dms|dsk|d64|sdi|mds|mdx|cdi|cue|cif|c2d|daa|b6t)(?.*)?$ 43200 100% 432000
      refresh_pattern -i (.|-)(mp3|m4a|aa?c3?|wm?av?|og(x|v|a|g)|ape|mka|au|aiff|zip|flac|m4(b|r)|m1v|m2(v|p)|mo(d|v)|arj|appx|lha|lzh|on2) 43200 100% 432000
      refresh_pattern -i (.|-)(exe|bin|(n|t)ar|acv|(r|j)ar|t?gz|(g|b)z(ip)?2?|7?z(ip)?|wm[v|a]|patch|diff|mar|vpu|inc|r(a|p)m|kom|iso|sys|[ap]sf|ms[i|u|f]|dat|msi|cab|psf|dvr-ms|ace|asx|qt|xt|esd) 43200 100% 432000
      refresh_pattern -i (.|-)(ico(.)?|pn[pg]|css|(g|t)iff?|jpe?g(2|3|4)?|psd|c(d|b)r|cad|bmp|img) 43200 100% 432000
      refresh_pattern -i (.|-)(webm|(x-)?swf|mp(eg)?(3|4)|mpe?g(av)?|(x-)?f(l|4)v|divx?|rmvb?|mov|trp|ts|avi|m38u|wmv|wmp|m4v|mkv|asf|dv|vob|3gp?2?) 43200 100% 432000
      refresh_pattern -i (.|-)(docx?|xlsx?|pptx?|rtf|xml|pdf|tiff?|txt) 43200 100% 432000

      #new refresh patterns 2
      refresh_pattern -i (.|-)(ini|def|sig|upt|mid|midi|mpg|mpeg|ram|cav|acc|alz|apk|at3|bke|arc|ass|ba|big|bik|bkf|bld|c4|cals|clipflair|cpt|daa|dmg|ddz|dpe|egg|egt|ecab|ess|esd|gho|ghs|gz|ipg|jar|lbr|lqr|lha|lz|lzo|lzma|lzx|mbw|mc.meta|mpq|nth|osz|pak|par|par2|paf|pyk|pk3|pk4|rag|sen|sitx|skb|tb|tib|uha|uue|viv|vsa|z|zoo|nrg|adf|adz|dms|dsk|d64|sdi|mds|mdx|cdi|cue|cif|c2d|daa|b6t)(?.*)?$ 43200 100% 432000
      #end new refresh patterns 2

      #new refresh patterns
      refresh_pattern -i (.|-)(mp3|m4a|aa?c3?|wm?av?|og(x|v|a|g)|ape|mka|au|aiff|zip|flac|m4(b|r)|m1v|m2(v|p)|mo(d|v)|arj|appx|lha|lzh|on2)(?.)?$ 43200 100% 432000
      refresh_pattern -i (.|-)(exe|bin|(n|t)ar|acv|(r|j)ar|t?gz|(g|b)z(ip)?2?|7?z(ip)?|wm[v|a]|patch|diff|mar|vpu|inc|r(a|p)m|kom|iso|sys|[ap]sf|ms[i|u|f]|dat|msi|cab|psf|dvr-ms|ace|asx|qt|xt|esd)(?.
      )?$ 43200 100% 432000
      refresh_pattern -i (.|-)(ico(.)?|pn[pg]|css|(g|t)iff?|jpe?g(2|3|4)?|psd|c(d|b)r|cad|bmp|img)(?.)?$ 43200 100% 432000
      refresh_pattern -i (.|-)(webm|(x-)?swf|mp(eg)?(3|4)|mpe?g(av)?|(x-)?f(l|4)v|divx?|rmvb?|mov|trp|ts|avi|m38u|wmv|wmp|m4v|mkv|asf|dv|vob|3gp?2?)(?.)?$ 43200 100% 432000
      refresh_pattern -i (.|-)(docx?|xlsx?|pptx?|rtf|xml|pdf|tiff?|txt)(?.
      )?$ 43200 100% 432000
      refresh_pattern -i .(rar|jar|gz|tgz|tar|bz2|iso|m1v|m2(v|p)|mo(d|v)|flv) 129600 100% 129600
      refresh_pattern (Release|Packages(.gz)*)$ 0 20% 2880

      GENERIC CACHING BELOW

      refresh_pattern -i .(cdn) 10800 100% 43800
      refresh_pattern -i (cdn) 10800 100% 43800
      refresh_pattern -i (.|-)(xml|js|jsp|txt|css)?$ 360 40% 1440
      refresh_pattern (get_video?|videoplayback?|videodownload?|.flv?) 129600 100% 129600
      refresh_pattern (get_video?|videoplayback?id|videoplayback.id|videodownload?|.flv?) 129600 100% 129600
      refresh_pattern ^.
      (utm.gif|ads?|rmxads.com|ad.z5x.net|bh.contextweb.com|bstats.adbrite.com|a1.interclick.com|ad.trafficmp.com|ads.cubics.com|ad.xtendmedia.com|.googlesyndication.com|advertising.com|yieldmanager|game-advertising.com|pixel.quantserve.com|adperium.com|doubleclick.net|adserving.cpxinteractive.com|syndication.com|media.fastclick.net).* 129600 20% 129600
      refresh_pattern ^.*safebrowsing.google 129600 100% 129600
      refresh_pattern ^http://((cbk|mt|khm|mlt)[0-9]?).google.co(m|.uk) 129600 100% 129600
      refresh_pattern ytimg.com.
      .jpg 129600 100% 129600

      #YOUTUBE
      refresh_pattern .ytimg? 10800 90% 10800
      refresh_pattern -i (yimg|twimg).com.* 1440 100% 129600
      refresh_pattern -i (ytimg|ggpht).com.* 1440 80% 129600
      refresh_pattern -i (get_video?|videoplayback?|videodownload?|.mp4|.webm|.flv|((audio|video)/(webm|mp4))) 241920 100% 241920 store-stale
      refresh_pattern -i ^https?://..googlevideo.com/videoplayback. 10080 99% 43200 store-stale
      refresh_pattern -i ^https?://..googlevideo.com/videoplayback.$ 241920 100% 241920 store-stale

      #XBOX
      refresh_pattern -i lancache-microsoft 525600 100% 525600
      refresh_pattern -i images-eds.xboxlive.com 525600 100% 525600

      #catch all
      refresh_pattern -i (/cgi-bin/|?) 0 0% 0
      refresh_pattern . 0 30% 43200
      range_offset_limit 0

      This is set up to have caching for HTTPS items seen here

      588920f5-7d73-4640-a456-373a79d1c2de-image.png

      How can I get it to replace the stored cached item with a higher watermark setting inside of the local cache? This is set up like this to cache containers and scan them with the antivirus software. The system has caught many issues that come from the online world so far.

      2353a58c-ecfc-4609-8173-aa8dfcbecf2c-image.png
      As you can see there is many items that the firewall is stopping and finding that are external and seem to originate from the internet.

      Make sure to upvote

      1 Reply Last reply Reply Quote 0
      • First post
        Last post
      Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.