मैं अपाचे का उपयोग कर रहा हूं।.htaccess के माध्यम से जावास्क्रिप्ट संपीड़न?
मैं अपने एचटीएमएल & सीएसएस फाइलों को अपने .htaccess फ़ाइल में निम्न निर्देश का उपयोग करके फ्लाई पर ऑटो gzipping कर रहा हूँ।
# Enable ETag
FileETag MTime Size
# Set expiration header
ExpiresActive on
ExpiresDefault "access plus 1 year"
ExpiresByType image/gif A2592000
ExpiresByType image/png A2592000
ExpiresByType image/jpeg A2592000
ExpiresByType text/css A2592000
ExpiresByType text/javascript A2592000
ExpiresByType text/js A2592000
# Compress some text file types
AddOutputFilterByType DEFLATE text/html text/css text/xml application/x-javascript text/javascript text/js
# Deactivate compression for buggy browsers
BrowserMatch ^Mozilla/4 gzip-only-text/html
BrowserMatch ^Mozilla/4\.0[678] no-gzip
BrowserMatch \bMSIE !no-gzip !gzip-only-text/html
हालांकि, जब मैं Firefox के लिए Firebug प्लगइन का उपयोग, मुझे लगता है कि मेरी जावास्क्रिप्ट फ़ाइलें gzipped नहीं किया जा रहा है (केवल मेरी HTML और सीएसएस फ़ाइलें हैं) पर ध्यान दें।
कोई विचार क्यों अपाचे द्वारा फ्लाई पर मेरी जावास्क्रिप्ट फ़ाइलों को gzipped नहीं किया जा रहा है?
इसका उपयोग करके, मुझे अभी भी वही समस्या है। जावास्क्रिप्ट और सीएसएस फ़ाइलें संपीड़ित नहीं हैं। –
मेरे लिए भी काम नहीं करता है। – sholsapp