/var/www/vhosts/m-auto.co/httpdocs
NameSizeModeActions
admin/-0755rm
ajax/-0755rm
assets/-0755rm
includes/-0755rm
uploads/-0755rm
.htaccess29060644editdlrm
7-6-2026.zip159530644editdlrm
404.php13460644editdlrm
500.php13260644editdlrm
about.php22140644editdlrm
add_technical_specs.php36590644editdlrm
ajax_filter_cars.php74120644editdlrm
atom.xml62812440644editdlrm
BACKGROUND_THEMES_INFO.md45610644editdlrm
Backup.zip49650644editdlrm
branches.php107880644editdlrm
calculator.php58970644editdlrm
cars.php219910644editdlrm
car_condition_summary.php92480644editdlrm
car_details.php225840644editdlrm
CAR_GALLERY_README.md78700644editdlrm
car_gallery_summary.php108570644editdlrm
check_brand_matching.php20000644editdlrm
cleanup_for_production.php48780644editdlrm
compare.php202550644editdlrm
COMPARISON_SYSTEM_README.md68320644editdlrm
contact.php38190644editdlrm
contact_process.php23700644editdlrm
database_backup_2025-11-04_13-01-05.sql481380644editdlrm
debug_brands.php22670644editdlrm
deployment_checklist.php68600644editdlrm
DEPLOYMENT_GUIDE.md27120644editdlrm
export_database.php33290644editdlrm
find_nearest_branch.php28890644editdlrm
get-sitemap.php25800644editdlrm
get_branches_by_city.php46970644editdlrm
google7cbe8ec413192e2a.html530644editdlrm
google69217c47da90dd66.html530644editdlrm
index.php6335590644editdlrm
m11.zip322228240644editdlrm
main.php125950644editdlrm
main1.php119110644editdlrm
maintenance.php41690644editdlrm
maintenance_process.php34080644editdlrm
manifest.json8280644editdlrm
news.php26910644editdlrm
news_article.php65360644editdlrm
ODOO_INTEGRATION_README.md44350644editdlrm
offers.php22180644editdlrm
PRODUCTION_SUMMARY.md64260644editdlrm
quick_test_gallery.php60780644editdlrm
README.md61700644editdlrm
robots.txt590644editdlrm
server_check.php52930644editdlrm
sitemap.js4796200644editdlrm
sitemap.xml62818290644editdlrm
sw.js19540644editdlrm
test_odoo_connection.php34740644editdlrm
visit.php37810644editdlrm
visit_process.php27710644editdlrm
x.txt4796570644editdlrm
Edit: /var/www/vhosts/m-auto.co/httpdocs/sw.js (1954B)
const CACHE_NAME = 'm-auto-v2'; const urlsToCache = [ 'assets/css/style.css', 'assets/images/logo.png', 'https://cdn.jsdelivr.net/npm/bootstrap@5.3.2/dist/css/bootstrap.rtl.min.css', 'https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.5.1/css/all.min.css', 'https://fonts.googleapis.com/css2?family=Cairo:wght@300;400;700;900&display=swap' ]; // Install event self.addEventListener('install', function(event) { event.waitUntil( caches.open(CACHE_NAME) .then(function(cache) { console.log('Opened cache'); return cache.addAll(urlsToCache); }) ); }); // Fetch event self.addEventListener('fetch', function(event) { const url = new URL(event.request.url); // استثناء صفحات PHP والطلبات الديناميكية بالكامل من التخزين المؤقت // وجعلها تجلب دائماً من السيرفر مباشرة if ( event.request.mode === 'navigate' || url.pathname.endsWith('.php') || url.pathname === '/' || url.pathname.endsWith('/') ) { event.respondWith( fetch(event.request) .catch(function() { return caches.match(event.request); }) ); } else { // الملفات الثابتة (CSS, JS, الصور) تستخدم التخزين المؤقت أولاً event.respondWith( caches.match(event.request) .then(function(response) { return response || fetch(event.request); }) ); } }); // Activate event self.addEventListener('activate', function(event) { event.waitUntil( caches.keys().then(function(cacheNames) { return Promise.all( cacheNames.map(function(cacheName) { if (cacheName !== CACHE_NAME) { console.log('Deleting old cache:', cacheName); return caches.delete(cacheName); } }) ); }) ); });